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

            return RedirectToAction("CustomerList");
        }