* Global.asax.cs: ignored routes are revisited

* YavscApiController.cs: implements a default web api response

* Web.csproj: bask to net451

* AccountController.cs: refactoring

* Web.config: removes the app setting "ClientValidationEnabled"

* Web.config: Makes true the clientValidationEnabled app parameter

* packages.config: retargeting Paypal api to net451

* AccountController.cs: xml doc
This commit is contained in:
Paul Schneider 2015-09-11 14:37:26 +02:00
commit ab4471e974
9 changed files with 94 additions and 38 deletions

View file

@ -32,7 +32,7 @@ namespace Yavsc.ApiControllers
/// <summary>
/// Account controller.
/// </summary>
public class AccountController : ApiController
public class AccountController : YavscApiController
{
/// <summary>
@ -89,13 +89,7 @@ namespace Yavsc.ApiControllers
}
private HttpResponseMessage DefaultResponse()
{
return ModelState.IsValid ?
Request.CreateResponse (System.Net.HttpStatusCode.OK) :
Request.CreateResponse (System.Net.HttpStatusCode.BadRequest,
ValidateAjaxAttribute.GetErrorModelObject (ModelState));
}
/// <summary>
/// Resets the password.