public void DeleteSale(int saleId) { var sale = _salesRepo.GetSale(saleId); if (sale != null) { _salesRepo.ClearProductSales(saleId); _salesRepo.DeleteSalePayments(saleId); _salesRepo.DeleteSaleInvoice(saleId); } }