Created
October 17, 2013 15:46
-
-
Save Boggin/861977bfc155a82d785e to your computer and use it in GitHub Desktop.
MS Web API Authorize Attribute with Ninject 3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Demo.WebMvc4.Controllers.Api | |
{ | |
[ApiAuthorize(Permission = Role.Administrator)] | |
public class CategoryController : ApiController | |
{ | |
[HttpPost] | |
public HttpResponseMessage Post(IEnumerable<CategoryDto> categories) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment