Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public ActionResult AddToRole(Guid id) { var user = _Storage.GetUser(u => u.Id == id); var roleList = _Storage.GetRolesAvailableToUser(user).Select(r => new SelectListItem { Text = Localization.getMessage(r.ToString()), Value = ((int)r).ToString(), Selected = false }); var userRole = new UserRoleModel { RoleList = roleList }; return(View(userRole)); }