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