Added a "Type" property to form inputs.
Fixed the second "title" section found in web page heads.
This commit is contained in:
@ -44,7 +44,7 @@ namespace Yavsc.Controllers
|
||||
[Authorize(Roles="Admin")]
|
||||
public ActionResult CreateUserBackup(DataAccess datac,string username)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ namespace Yavsc.Controllers
|
||||
{
|
||||
public class FileSystemController : Controller
|
||||
{
|
||||
private static string usersDir ="users";
|
||||
private static string usersDir ="~/users";
|
||||
|
||||
public static string UsersDir {
|
||||
get {
|
||||
@ -25,9 +25,10 @@ namespace Yavsc.Controllers
|
||||
{
|
||||
string user = Membership.GetUser ().UserName;
|
||||
ViewData ["UserName"] = user;
|
||||
|
||||
DirectoryInfo di = new DirectoryInfo (
|
||||
Path.Combine(
|
||||
UsersDir,
|
||||
Server.MapPath(UsersDir),
|
||||
user));
|
||||
if (!di.Exists)
|
||||
di.Create ();
|
||||
|
@ -66,10 +66,12 @@ namespace Yavsc.ApiControllers
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Adds to basket, a product from the catalog, in the user's session.
|
||||
/// </summary>
|
||||
/// <returns>The to basket.</returns>
|
||||
[HttpGet]
|
||||
[Authorize]
|
||||
public long AddToBasket (string title)
|
||||
public long AddToBasket (string prodref,int count, object prodparams=null)
|
||||
{
|
||||
//TODO find the basket for Membership.GetUser().UserName
|
||||
//return WFManager.Write(estid << from the basket, desc, ucost, count, productid);
|
||||
|
@ -8,11 +8,18 @@ using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
using Yavsc.Controllers;
|
||||
using System.Collections.Generic;
|
||||
using yavscModel.WorkFlow;
|
||||
using WorkFlowProvider;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
public class FrontOfficeController : Controller
|
||||
{
|
||||
[HttpGet]
|
||||
public Estimate GetEstimate(long estid) {
|
||||
return WFManager.GetEstimate (estid);
|
||||
}
|
||||
|
||||
[AcceptVerbs("GET")]
|
||||
public ActionResult Catalog ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user