public ActionResult Create(Customer10Model cust) { if (ModelState.IsValid) { return(RedirectToAction("DisplayCustomer")); } return(View(cust)); }
// GET: Customer10 public ActionResult DisplayCustomer() { var customer = new Customer10Model(1, "Dalal", 23, "sweleih"); return(View(customer)); }