c# - Creating an admin page in asp.net mvc 5 -


i started basic tutorial http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started .

i've added 2 roles in database table aspnetroles (yes db generated automatically)

now i'm looking tutorials create admin page. because don't know start. can of put me in right direction.

you start adding admincontroller , give actions.

you place [authorize] attribute above controller admins able access actions controller, similar below:

[authorize(roles = "admin, anotherrole")] public class admincontroller : controller {     public actionresult index()     {         return view();     } } 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -