Beispiel #1
0
        public JsonResult Convert(SanPham sp)
        {
            var data = SanPhamDao.SanPham(sp.MaHH);

            if (data.MaHH == sp.MaHH)
            {
                data.Tang = sp.Tang;
                data.Hang = sp.Hang;
                data.Cot  = sp.Cot;
                SanPhamDao.Update();
            }
            return(Json(data: new { message = "Thành công ", success = true }, JsonRequestBehavior.AllowGet));
        }