asp.net mvc5 OWIN
Posted on 2016-08-16
I have implemented user authentication and used owin by .Net framework.
I can't get the concept of how to pass roles to view. The framework gives - var rol = Usermanager.GetRoles(id); to get all roles by user id, but when I get the roles I don't really know how to get these roles and compare them to my model.