Пример #1
0
 public ActionResult Edit([Bind(Include = "FirstName,LastName,EmailAddress,Quote")] Insuree insuree)
 {
     if (ModelState.IsValid)
     {
         db.Entry(insuree).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(insuree));
 }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,EmailAddress,DateOfBirth,CarYear,CarMake,CarModel,DUI,SpeedingTickets,CoverageType")] Insuree insuree)
 {
     if (ModelState.IsValid)
     {
         db.Entry(insuree).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Admin"));
     }
     return(View(insuree));
 }
Пример #3
0
 public ActionResult Edit([Bind(Include = "ID,FirstName,LastName,EmailAddress,DateOfBirth,CarYear,CarMake,CarModel,DUI,SpeedingTickets,CoverageType,Quote")] Applicant applicant)
 {
     if (ModelState.IsValid)
     {
         db.Entry(applicant).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(applicant));
 }
Пример #4
0
 public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,EmailAddress,CarYear,CarMake,CarModel,DUI,FullCoverageLiability,Quotes,DateOfBirth")] Quote Quote)
 {
     if (ModelState.IsValid)
     {
         db.Entry(Quote).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(Quote));
 }