Exemplo n.º 1
0
 public ActionResult Create(FormCollection collection)
 {
     try
     {
         // TODO: Add insert logic here
         Models.CustomerModel customerModel = new Models.CustomerModel();
         UpdateModel(customerModel);
         customerRepository.InsertCustomer(customerModel);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View("CreateCustomer"));
     }
 }