public ActionResult Edit(PRCInformation prcinformation) { if (ModelState.IsValid) { db.Entry(prcinformation).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(prcinformation); }
public ActionResult Create(PRCInformation prcinformation) { if (ModelState.IsValid) { db.PRCInformations.Add(prcinformation); db.SaveChanges(); return RedirectToAction("Index"); } return View(prcinformation); }