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