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