Пример #1
0
 public async Task <DataResponse <DataResponse <BudgetYearDto> > > Handle(BudgetYearQuery request, CancellationToken cancellationToken)
 {
     return(_mapper.Map <DataResponse <DataResponse <BudgetYearDto> > >(await _repository.GetEntityAsync(request.Id, cancellationToken)));
 }
Пример #2
0
 public async Task <ActionResult <DataResponse <BudgetYearDto> > > GetById([FromRoute] BudgetYearQuery query)
 {
     return(Ok(await Mediator.Send(query)));
 }