Пример #1
0
        public IActionResult RemoveBill(int Billid)
        {
            var bill = _billRepository.GetBillDetails(Billid);

            foreach (var item in bill)
            {
                _billRepository.DeleteDetail(Billid, item.ProductId);
            }
            _billRepository.RemoveBill(Billid);
            return(new OkObjectResult("OK"));
        }