public ActionResult Edit([Bind(Include = "ID,StatusType,StatusName,Description")] Status status) { if (ModelState.IsValid) { db.Entry(status).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(status)); }
public ActionResult Edit([Bind(Include = "ID,discriminator,LastName,FirstName,Email,phoneNumber,AgencyName")] Person person) { if (ModelState.IsValid) { db.Entry(person).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(person)); }
public ActionResult Edit([Bind(Include = "ID,CustodianFlag,LastName,FirstName,Email,phoneNumber,AgencyName")] Custodian custodian) { if (ModelState.IsValid) { db.Entry(custodian).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(custodian)); }
public ActionResult Edit([Bind(Include = "ID,agentFlag,LastName,FirstName,Email,phoneNumber,AgencyName")] Agent agent, MFIntake.Models.Intake intake) { if (ModelState.IsValid) { db.Entry(agent).State = EntityState.Modified; db.SaveChanges(); return(Redirect(Request.UrlReferrer.ToString())); //return RedirectToAction("Index"); } return(View(agent)); }