public void ProcessProductSales(SaleInvoice sale, IList <ProductSale> productSales) { _salesRepo.AddProductSales(productSales); sale.Total = ProcessSaleTotalAmount(productSales); _salesRepo.UpdateSale(sale); }