* Profile.aspx: * MyProfile.aspx: * AccountController.cs: renamed the Profile method to "MyProfile", could avoid issue at migrating to MVC5 * favicon.png: favicon now displays a ~"Yavsc" * BlogManager.cs: * BlogsApiController.cs: The authorisation for removing a post is now implemented at Manager's side * BlogsController.cs: Removes this odd call to a static method from the Api controller * CalendarApi.cs: * GoogleController.cs: no more json output for the calls to the Google Api * WorkFlowController.cs: sorted using clauses * Basket.cs: * Commande.cs: * EstimToPdfFormatter.cs: * Brand.cs: adds xml doc * RssFeedsFormatter.cs: modifies xml doc * TexToPdfFormatter.cs: refactoring * Global.asax.cs: Document formatting * BBCodeHelper.cs: encapsulates the url display from the BBCode in starting and closing characters : "<>" * OAuth2.cs: * SimpleJsonPostMethod.cs: using System.Runtime.Serialization.Json instead of Newtonsof.Json * App.master: updating the favicon * RegistrationPending.aspx: fixes the returnUrl usage * AssemblyInfo.aspx: better explanation for this list * Web.config: tried to migrate to MVC5 (using NuGets) * Estim.cs: * ChangePasswordModel.cs: adds xmldoc * BasketController.cs: * BlogProvidersConfigurationSection.cs: cosmetic change * GoogleErrorMessage.cs: - adds xml docs - renders ctor from JsonReaderException obsolete * MvcActionValueBinder.cs: not used * web.config: no more used, gave it up to migrate to MVC5
85 lines
No EOL
2.1 KiB
C#
85 lines
No EOL
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.Http;
|
|
using Yavsc.Model.WorkFlow;
|
|
using System.Collections.Specialized;
|
|
using Yavsc.Model.FrontOffice;
|
|
|
|
namespace Yavsc.ApiControllers
|
|
{
|
|
/// <summary>
|
|
/// Basket controller.
|
|
/// Maintains a collection of articles
|
|
/// qualified with name value pairs
|
|
/// </summary>
|
|
public class BasketController : ApiController
|
|
{
|
|
/// <summary>
|
|
/// The wfmgr.
|
|
/// </summary>
|
|
protected WorkFlowManager wfmgr = null;
|
|
|
|
/// <summary>
|
|
/// Initialize the specified controllerContext.
|
|
/// </summary>
|
|
/// <param name="controllerContext">Controller context.</param>
|
|
protected override void Initialize (System.Web.Http.Controllers.HttpControllerContext controllerContext)
|
|
{
|
|
base.Initialize (controllerContext);
|
|
wfmgr = new WorkFlowManager ();
|
|
}
|
|
|
|
/// <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 ();
|
|
}
|
|
|
|
/// <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 ();
|
|
}
|
|
}
|
|
} |