Example #1
0
 public ActionResult CreateCustomer()
 {
     var model = new Customer();
     return View(model);
 }
Example #2
0
 public ActionResult CreateCustomer(Customer customer)
 {
     customers.Insert(customer);
     customers.Commit();
     return RedirectToAction("CustomerList");
 }
Example #3
0
        public ActionResult EditCustomer(Customer customer)
        {
            customers.Update(customer);
            customers.Commit();

            return RedirectToAction("CustomerList");
        }