public async Task <IActionResult> GetAll([FromQuery] CompanyRequestAllDto requestDto) { var response = await _appService.GetAllAsync(requestDto); return(CreateResponseOnGetAll(response, _name)); }
public async Task <IListDto <CompanyDto> > GetAllCompaniesAsync(CompanyRequestAllDto key) { return(await GetAllAsync <CompanyDto>(key, c => (key.Cnpj.IsNullOrEmpty() || c.Cnpj.Equals(key.Cnpj)) && (key.Email.IsNullOrEmpty() || c.Email.Equals(key.Email)))); }
public async Task <IListDto <CompanyDto> > GetAllAsync(CompanyRequestAllDto request) => await _repository.GetAllCompaniesAsync(request);