* style.css:
* Web.csproj: * Web.config: * Catalog.xml: * Global.asax.cs: * TestBinding.cs: * IProvider.cs: * yavscModel.csproj: * WFManager.cs: * BasketController.cs: * WorkFlowController.cs: * ITCPNpgsqlProvider.cs: * IContentProvider.cs: * WorkFlowProvider.csproj: * NpgsqlContentProvider.cs: * Provider.cs: * ITContentProvider.csproj: * FrontOfficeApiController.cs: * ProviderCollection.cs: * WorkflowConfiguration.cs: * BlogProvidersConfigurationSection.cs: * IITContent.cs: Estimate creation
This commit is contained in:
parent
fa93ce7fee
commit
bba917dcc0
21 changed files with 375 additions and 85 deletions
|
|
@ -11,6 +11,8 @@ using System.Web;
|
|||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using WorkFlowProvider;
|
||||
using System.Web.Security;
|
||||
|
||||
namespace Yavsc.ApiControllers
|
||||
{
|
||||
|
|
@ -30,13 +32,12 @@ namespace Yavsc.ApiControllers
|
|||
;
|
||||
}
|
||||
|
||||
[AcceptVerbs("POST")]
|
||||
[AcceptVerbs("GET","POST")]
|
||||
public string Command()
|
||||
{
|
||||
return null;
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
public HttpResponseMessage Post()
|
||||
{
|
||||
HttpResponseMessage result = null;
|
||||
|
|
@ -80,6 +81,21 @@ namespace Yavsc.ApiControllers
|
|||
return "/path/to/image.png";
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Authorize]
|
||||
public long CreateEstimate (string title)
|
||||
{
|
||||
return WFManager.CreateEstimate (
|
||||
Membership.GetUser().UserName,title);
|
||||
}
|
||||
[HttpGet]
|
||||
[Authorize]
|
||||
public long AddToBasket (string title)
|
||||
{
|
||||
//TODO find the basket for Membership.GetUser().UserName
|
||||
//return WFManager.Write(estid << from the basket, desc, ucost, count, productid);
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue