public ActionResult KyHopDong(string id) { SanphamcanmuaModel sp = new SanphamcanmuaModel(); sp.DeleteSPCM(Convert.ToInt32(id)); return(TimDS(null, null, null, null)); }
public ActionResult MultibleDel(List <string> lstdel) { foreach (var item in lstdel) { SanphamcanmuaModel ncc = new SanphamcanmuaModel(); ncc.DeleteSPCM(Convert.ToInt32(item)); } return(TimSPCM(null, null)); }
public ActionResult DeleteSPCM(int id) { SanphamcanmuaModel ncc = new SanphamcanmuaModel(); if (ncc.getSanphamcanmua(id) == null) { return(HttpNotFound()); } ncc.DeleteSPCM(id); return(TimSPCM(null, null)); }