Last post Feb 27, 2019 02:39 AM by Nan Yu
Feb 26, 2019 02:14 PM|HelloWorld89|LINK
Hello, i need for every role , define privileges like as : admin can create, delete, edit picture and user can only to see picture.
What is right way to do this ?
Feb 27, 2019 02:39 AM|Nan Yu|LINK
You can use ASP.NET Identity for user and role management , and when roles are used to enforce access restrictions within our application, they are basically hard-coded, usually via the [Authorize] attribute. Please refer to below link for more details
and code sample :
If you are using .net core , you can refer to below article :