Example #1
0
 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));
 }
Example #2
0
 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));
 }