Ejemplo n.º 1
0
        public SingleRsp UpdateChiTietDH(ChiTietDHReq pro)
        {
            var            res     = new SingleRsp();
            ChiTietDonHang chitiet = new ChiTietDonHang();

            chitiet.MaDh    = pro.MaDh;
            chitiet.MaHoa   = pro.MaHoa;
            chitiet.SoTien  = pro.SoTien;
            chitiet.Soluong = pro.Soluong;
            chitiet.GiamGia = pro.GiamGia;
            res             = _rep.UpdateChiTietDH(chitiet);
            return(res);
        }
        public IActionResult UpdateChiTietDonHangCtrl([FromBody] ChiTietDHReq req)
        {
            var res = _svc.UpdateChiTietDH(req);

            return(Ok(res));
        }
        public IActionResult CreateChiTietDonHang([FromBody] ChiTietDHReq req)
        {
            var res = _svc.CreateChiTietDH(req);

            return(Ok(res));
        }