Пример #1
0
 public UserListViewModel(IList<Role> roles)
 {
     Roles = roles.ToSelectListItems(r => r.Name, r => r.Id, true);
 }
Пример #2
0
 public UserFormViewModel(IList<Company> companies)
 {
     Companies = companies.ToSelectListItems(r => r.Name, r => r.Id, true);
 }