public async Task <DataResponse <DataResponse <BudgetYearDto> > > Handle(BudgetYearQuery request, CancellationToken cancellationToken) { return(_mapper.Map <DataResponse <DataResponse <BudgetYearDto> > >(await _repository.GetEntityAsync(request.Id, cancellationToken))); }
public async Task <ActionResult <DataResponse <BudgetYearDto> > > GetById([FromRoute] BudgetYearQuery query) { return(Ok(await Mediator.Send(query))); }