예제 #1
0
        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));
        }
예제 #2
0
 public IEnumerable <Role> GetRoles()
 {
     return(_UserStorage.GetRoles());
 }