public ActionResult DeleteConfirmed(int id) { POPBasic popbasic = db.POPBasics.Find(id); db.POPBasics.Remove(popbasic); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(POPBasic popbasic) { if (ModelState.IsValid) { db.Entry(popbasic).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(popbasic)); }
public ActionResult Create(POPBasic popbasic) { if (ModelState.IsValid) { db.POPBasics.Add(popbasic); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(popbasic)); }
// // GET: /PopBasic/Delete/5 public ActionResult Delete(int id) { POPBasic popbasic = db.POPBasics.Find(id); return(View(popbasic)); }
// // GET: /PopBasic/Details/5 public ViewResult Details(int id) { POPBasic popbasic = db.POPBasics.Find(id); return(View(popbasic)); }