public ActionResult edit(string MASP, string TENSP, decimal GIASP, string LINK_ANH, string MADM, DateTime TDT) { SanPhamDao dao = new SanPhamDao(); SanPham sp = new SanPham(); sp = dao.getMASP(MASP); sp.TENSP = TENSP; sp.GIASP = GIASP; sp.LINK_ANH = LINK_ANH; sp.MADM = MADM; sp.TDT = TDT; if (ModelState.IsValid) { dao.edit(sp); return(RedirectToAction("sp")); } else { return(View(sp)); } }