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