public async Task <PagedResultDto <ProductOutputDto> > GetProducts(ProductFilterInputDto filterInput) { List <ProductOutputDto> result = new List <ProductOutputDto>(); var query = productDomainService.GetAll(); query = productFilter.AddFilterToQuery(query, filterInput); var entityOutputs = await query.ToListAsync(); entityOutputs.ForEach(x => { result.Add(productMapperService.MapToDto(x)); }); return(new PagedResultDto <ProductOutputDto>() { ResultList = result }); }