private async Task SavePendingRatesAsync(Order order) { foreach (ProductOrder productOrder in order.ProductOrders) { PendingRate pendingRate = new PendingRate(productOrder.Product, order.User.Id, order.Date); await ratesRepository.AddPendingAsync(pendingRate); } }