I need to implement ASP.NET Web API 2 ie
[RoutePrefix("orders")]
public class OrdersController : ApiController
{
[Route("{id}")]
public Order Get(int id) { }
[Route("{id}/approve")]
public Order Approve(int id) { }
}
I am wondering how this can be protected?
Can we use ASP.NET ID for this, for example?
Any clue?
source
share