public ActionResult DeleteConfirmed(string id) { CHUYENMON cHUYENMON = db.CHUYENMONs.Find(id); db.CHUYENMONs.Remove(cHUYENMON); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON) { if (ModelState.IsValid) { db.Entry(cHUYENMON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cHUYENMON)); }
public ActionResult Create([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON) { if (ModelState.IsValid) { db.CHUYENMONs.Add(cHUYENMON); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cHUYENMON)); }
// GET: CHUYENMONs/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CHUYENMON cHUYENMON = db.CHUYENMONs.Find(id); if (cHUYENMON == null) { return(HttpNotFound()); } return(View(cHUYENMON)); }
public int DataInsertCHUYENMON(CHUYENMON ObjCHUYENMON) { return(PDInsertCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm)); }
public DataTable DataDetailsCHUYENMON(CHUYENMON ObjCHUYENMON) { return(PDDetailsCHUYENMON(ObjCHUYENMON.cmid)); }
public int DataUpdateCHUYENMON(CHUYENMON ObjCHUYENMON) { return(PDUpdateCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm)); }
public int DataDeleteCHUYENMON(CHUYENMON ObjCHUYENMON) { return(PDDeleteCHUYENMON(ObjCHUYENMON.cmid)); }
public int Insert(CHUYENMON ObjCHUYENMON) { DataCHUYENMON objData = new DataCHUYENMON(); return(objData.DataInsertCHUYENMON(ObjCHUYENMON)); }
public DataTable Details(CHUYENMON ObjCHUYENMON) { DataCHUYENMON objData = new DataCHUYENMON(); return(objData.DataDetailsCHUYENMON(ObjCHUYENMON)); }
public int Delete(CHUYENMON ObjCHUYENMON) { DataCHUYENMON objData = new DataCHUYENMON(); return(objData.DataDeleteCHUYENMON(ObjCHUYENMON)); }
public int Update(CHUYENMON ObjCHUYENMON) { DataCHUYENMON objData = new DataCHUYENMON(); return(objData.DataUpdateCHUYENMON(ObjCHUYENMON)); }