public async Task <IEnumerable <ProductDto> > GetAllByCustomerIdAsync(Guid customerId) { // Fetch products with regular prices var products = await _productClient.GetAllAsync(); // Fetch customer with discount var customer = await _customerClient.GetAsync(customerId); // Calculate new prices products.ToList().ForEach(p => CalculatePrice(p, customer.Discount)); return(products); }