private AllAccountsInfo ListAllRoles() { using (var scope = WebHost.Services.CreateScope()) { var services = scope.ServiceProvider; manager = services.GetService <IAccountManagementService>(); return(manager.ListAllUsers()); } }
public AllAccountsInfo ListAllAccountRoles() { return(_accountManager.ListAllUsers()); }