Example #1
0
 public ActionResult DeleteCustomer(Customer customer)
 {
     if (ModelState.IsValid)                     // check server-side validation
     {
         return RedirectToAction("Confirm", customer);
     }
     else
     {
         return View();
     }
 }
Example #2
0
 // display details of the customer just added
 public ActionResult ConfirmCustomer(Customer customer)
 {
     return View(customer);
 }