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