public async Task <IActionResult> GetAll([FromQuery] PurchaseRequestAllDto requestDto) { var response = await _appService.GetAllAsync(requestDto); return(CreateResponseOnGetAll(response, _name)); }
public async Task <IListDto <PurchaseDto> > GetAllAsync(PurchaseRequestAllDto request) => await _service.GetAllAsync <PurchaseDto>(request , p => request.Description.IsNullOrEmpty() || p.Description.Contains(request.Description));