Esempio n. 1
0
        public Sale MakeNewSale(Sale data, List <SaleDetail> saleDetails)
        {
            var salesBLL       = new SalesBLL();
            var salesDetailBLL = new SalesDetailBLL();

            var newSale = salesBLL.MakeSale(data);

            foreach (var item in saleDetails)
            {
                item.Id_sale = newSale.Id_sales;
                salesDetailBLL.MakeSale(item);
            }

            return(newSale);
        }