// GET: THIETBIDAYHOCs/Create public ActionResult Create() { THIETBIDAYHOC obj = new THIETBIDAYHOC(); obj.TBDH_MA = CreateID.CreateID_ByteText(); return(View(obj)); }
public ActionResult DeleteConfirmed(string id) { THIETBIDAYHOC tHIETBIDAYHOC = db.THIETBIDAYHOCs.Find(id); db.THIETBIDAYHOCs.Remove(tHIETBIDAYHOC); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "TBDH_MA,TBDH_TEN")] THIETBIDAYHOC tHIETBIDAYHOC) { if (ModelState.IsValid) { db.Entry(tHIETBIDAYHOC).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tHIETBIDAYHOC)); }
public ActionResult Create([Bind(Include = "TBDH_MA,TBDH_TEN")] THIETBIDAYHOC tHIETBIDAYHOC) { if (ModelState.IsValid) { db.THIETBIDAYHOCs.Add(tHIETBIDAYHOC); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tHIETBIDAYHOC)); }
// GET: THIETBIDAYHOCs/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } THIETBIDAYHOC tHIETBIDAYHOC = db.THIETBIDAYHOCs.Find(id); if (tHIETBIDAYHOC == null) { return(HttpNotFound()); } return(View(tHIETBIDAYHOC)); }