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