Пример #1
0
        public SingleRsp CreateOrderDetails(CreateOrderDetailReq od)
        {
            var          res         = new SingleRsp();
            OrderDetails orderdetail = new OrderDetails();

            //orderdetail.OrderId = od.OrderId;
            orderdetail.ProductId        = od.ProductId;
            orderdetail.Quantity         = od.Quantity;
            orderdetail.Discount         = od.Discount;
            orderdetail.OrderDetailsName = od.OrderDetailsName;
            res = _rep.CreateOrderDetails(orderdetail);
            return(res);
        }
Пример #2
0
        public IActionResult CreateOrderDetails([FromBody] CreateOrderDetailReq req)
        {
            var res = _svc.CreateOrderDetails(req);

            return(Ok(res));
        }