public ActionResult Create() { var user = new User { RolesList = _Storage.GetRoles().AsQueryable().Select( r => new SelectListItem { Text = IUDICO.UserManagement.Localization.getMessage(r.ToString()), Value = ((int)r).ToString(), Selected = false }) }; return(View(user)); }
public IEnumerable <Role> GetRoles() { return(_UserStorage.GetRoles()); }