@ -6,11 +6,14 @@ using System.Web.Security;
using System.Web.Http ;
using System.Web.Http ;
using Yavsc.Model.WorkFlow ;
using Yavsc.Model.WorkFlow ;
using System.Collections.Specialized ;
using System.Collections.Specialized ;
using Yavsc.Model.FrontOffice ;
namespace Yavsc.ApiControllers
namespace Yavsc.ApiControllers
{
{
/// <summary>
/// <summary>
/// Basket controller.
/// Basket controller.
/// Maintains a collection of articles
/// qualified with name value pairs
/// </summary>
/// </summary>
public class BasketController : ApiController
public class BasketController : ApiController
{
{
@ -27,11 +30,58 @@ namespace Yavsc.ApiControllers
base . Initialize ( controllerContext ) ;
base . Initialize ( controllerContext ) ;
wfmgr = new WorkFlowManager ( ) ;
wfmgr = new WorkFlowManager ( ) ;
}
}
[AcceptVerbs("GET")]
public long Create ( string productId , NameValueCollection cmdParams )
/// <summary>
/// Create the specified basket item using specified command parameters.
/// </summary>
/// <param name="cmdParams">Command parameters.</param>
[AcceptVerbs("CREATE")]
public long Create ( NameValueCollection cmdParams )
{
throw new NotImplementedException ( ) ;
}
/// <summary>
/// Read the specified basket item.
/// </summary>
/// <param name="itemid">Itemid.</param>
[AcceptVerbs("READ")]
Commande Read ( long itemid ) {
throw new NotImplementedException ( ) ;
}
/// <summary>
/// Update the specified item parameter using the specified value.
/// </summary>
/// <param name="itemid">Item identifier.</param>
/// <param name="param">Parameter name.</param>
/// <param name="value">Value.</param>
[AcceptVerbs("UPDATE")]
public void Update ( long itemid , string param , string value )
{
{
throw new NotImplementedException ( ) ;
throw new NotImplementedException ( ) ;
}
}
/// <summary>
/// Delete the specified item.
/// </summary>
/// <param name="itemid">Item identifier.</param>
public void Delete ( long itemid )
{
throw new NotImplementedException ( ) ;
}
/// <summary>
/// Post a file, as attached document to the specified
/// Item
/// </summary>
[AcceptVerbs("POST")]
public void Post ( long itemId )
{
throw new NotImplementedException ( ) ;
}
}
}
}
}