Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const string User = "SomeUser";
- const string Admin = "Admin";
- .
- .
- .
- [Authorize(Roles = $"{User},{Admin}")]
- public IHttpActionResult Get()
- [Authorize(Roles = User + "," + Admin)]
- public IHttpActionResult Get()
Add Comment
Please, Sign In to add comment