Основные методы
Основные методы
Основные методы
Основные методы
public async Task <ExpensesModel> Handle(ExpensesRequest request, CancellationToken cancellationToken) { var filter = fMapper.Map <ExpenseFilterModel, ExpenseFilterDto>(request.Model); var count = await fExpenseRepository.CountAsync(filter, cancellationToken); var dtos = await fExpenseRepository.GetAsync(filter, cancellationToken); return(new ExpensesModel { Entries = fMapper.Map <ICollection <ExpenseDto>, ExpenseModel[]>(dtos), Count = count, }); }