mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
20 lines
569 B
C#
20 lines
569 B
C#
using DataAccessLayer.Entities;
|
|
using DataAccessLayer.Repositories;
|
|
using DataAccessLayer.Repositories.UserAccount;
|
|
|
|
namespace BusinessLayer.Services
|
|
{
|
|
public class UserService(IUserAccountRepository repository) : IUserService
|
|
{
|
|
public async Task<IEnumerable<UserAccount>> GetAllAsync(int? limit = null, int? offset = null)
|
|
{
|
|
return await repository.GetAllAsync(limit, offset);
|
|
}
|
|
|
|
public async Task<UserAccount?> GetByIdAsync(Guid id)
|
|
{
|
|
return await repository.GetByIdAsync(id);
|
|
}
|
|
}
|
|
}
|