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); }