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