using ODMO.Commons.DTOs.Account; using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Queries { public class AllAccountsQueryHandler : IRequestHandler> { private readonly IAccountQueriesRepository _repository; public AllAccountsQueryHandler(IAccountQueriesRepository repository) { _repository = repository; } public async Task> Handle(AllAccountsQuery request, CancellationToken cancellationToken) { return await _repository.GetAllAccountsAsync(); } } }