public async Task <IActionResult> Index() { IEnumerable <Person> Clients = await _userManager.GetUsersInRoleAsync(GlobalResources.ROLE_CLIENT); Clients = Clients.Where(s => s.Status == EntitiesEnums.EStatus.ACTIVE).ToList(); return(View(Clients)); }
public async Task <IActionResult> Index() { IEnumerable <Person> Clients = await _userManager.GetUsersInRoleAsync(GlobalResources.ROLE_CLIENT); Clients = Clients.Where(s => s.Status == EntitiesEnums.EStatus.ACTIVE).ToList(); return(View(Clients)); }