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