protected List <SelectListItem> GetRoleList() { var data = new List <SelectListItem>(); MembershipTools.NewRoleStore().Roles .ToList() .ForEach(x => { data.Add(new SelectListItem() { Text = $"{x.Name}", Value = x.Id }); }); return(data); }
protected List <SelectListItem> GetRoleList() { var data = new List <SelectListItem>(); MembershipTools.NewRoleStore().Roles .ToList() .ForEach(x => { data.Add(new SelectListItem() { Text = $"{x.Name}", Value = x.Id }); }); return(data); }