* 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
|
|
@ -14,8 +14,10 @@ namespace Yavsc.ApiControllers
|
|||
public class WorkFlowController : ApiController
|
||||
{
|
||||
[HttpGet]
|
||||
[Authorize]
|
||||
public object Index()
|
||||
{
|
||||
|
||||
return new { test="Hello World" };
|
||||
}
|
||||
|
||||
|
|
@ -25,6 +27,14 @@ namespace Yavsc.ApiControllers
|
|||
return new { c="lmk,", message="Panier impacté", impactRef=bi.ProductRef, count=bi.count};
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Authorize]
|
||||
public long Write (long estid, string desc, decimal ucost, int count, long productid=0) {
|
||||
// TODO ensure estid owner matches the current one
|
||||
|
||||
return WFManager.Write(estid, desc, ucost, count, productid);
|
||||
}
|
||||
|
||||
/*
|
||||
public object Details(int id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue