public ActionResult Edit(FbiMostWanted fbimostwanted) { if (ModelState.IsValid) { _db.Entry(fbimostwanted).State = EntityState.Modified; _db.SaveChanges(); return RedirectToAction("Index"); } return View(fbimostwanted); }
public ActionResult Create(FbiMostWanted fbimostwanted) { if (ModelState.IsValid) { _db.FbiMostWantedCriminals.Add(fbimostwanted); _db.SaveChanges(); return RedirectToAction("Index"); } return View(fbimostwanted); }