user service with editing, removing and reading accounts methods, controller actions for this service

This commit is contained in:
2024-08-22 00:23:02 +03:00
parent d1d3a1ab73
commit 85bac2b0a4
8 changed files with 140 additions and 9 deletions

View File

@@ -13,5 +13,10 @@ namespace Infrastructure.Database.Users.Repositories
{
return await LoadDomain().SingleOrDefaultAsync(u => u.Email == email, cancellationToken);
}
async Task<List<User>> IUsersRepository.GetAllOfRoleAsync(Role role, CancellationToken cancellationToken)
{
return await LoadDomain().Where(u => u.Role == role).ToListAsync(cancellationToken);
}
}
}