public ActionResult Edit([Bind(Include = "ID,Quote,FirstName,LastName,EmailAddress,MM,DD,YYYY,Year,Make,Model,DUI,Tickets,InsuranceType")] Application application) { if (ModelState.IsValid) { db.Entry(application).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(application)); }
public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,EmailAddress,DateOfBirth,CarYear,CarMake,CarModel,DUI,SpeedingTickets,CoverageType")] Insuree insuree) { if (ModelState.IsValid) { Calculator(insuree, "Save"); db.Entry(insuree).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(insuree)); }