Advertisement
Guest User

Admin API Controller

a guest
Dec 6th, 2013
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. public class AdminController: ApiController
  2. {
  3.     [AuthorizeForRole(Roles = "Admin")]
  4.     [POST("update"), HttpPost]
  5.     public Boolean Update([FromBody] someField, [FromBody] anotherField)
  6.     {
  7.         //do stuff
  8.         return true;
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement