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