Ejemplo n.º 1
0
        public ActionResult PostOrder([FromBody] dynamic order)
        {
            BillsId = _orderRepository.AddBill("dan", order);
            _orderRepository.AddBillDetail(BillsId, order);
            decimal total = order.total;

            _orderRepository.EditBill(total, BillsId);
            return(NoContent());
        }