public ActionResult DeleteConfirmed(short id) { BONDSUBCATEGORY bondsubcategory = db.BONDSUBCATEGORies.Find(id); db.BONDSUBCATEGORies.Remove(bondsubcategory); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /BondSubCategory/Delete/5 public ActionResult Delete(short id = 0) { BONDSUBCATEGORY bondsubcategory = db.BONDSUBCATEGORies.Find(id); if (bondsubcategory == null) { return(HttpNotFound()); } return(View(bondsubcategory)); }
public ActionResult Edit(BONDSUBCATEGORY bondsubcategory) { if (ModelState.IsValid) { db.Entry(bondsubcategory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bondsubcategory)); }
public ActionResult Create(BONDSUBCATEGORY bondsubcategory) { if (ModelState.IsValid) { db.BONDSUBCATEGORies.Add(bondsubcategory); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bondsubcategory)); }