Example #1
0
 public void OnGet() => Roles = _roleApplication.GetAllForAdmin();
Example #2
0
 public IndexModel(IUserApplication userApplication, IRoleApplication roleApplication)
 {
     _userApplication = userApplication;
     _roleApplication = roleApplication;
     Roles            = new SelectList(_roleApplication.GetAllForAdmin(), "Id", "Name");
 }