I have created using seed in mvc5 app some demo users and some roles. Successfully assign user to few roles. Everything works. Now I want but I don't know how to build user management, ui interface which will be responsible for
- Create/Edit users and assign to one or more roles
Roles will be hardcoded (RoleOne, RoleTwo, RoleThree).
I was thinking to create view with custom viewmodel which will take only few properties
Username
Password
and list of Roles assigned trough checkbox on the view.
Question is: How should I structure this Roles property on viewmodel and how to receive checked roles on the post controller action side?