public ActionResult Create(Customer customer) { customers.Insert(customer); customers.Commit(); return RedirectToAction("Index"); }
public ActionResult Edit(Customer customer) { customers.Update(customer); customers.Commit(); return RedirectToAction("Index"); }
// GET: /Create public ActionResult Create() { var customer = new Customer(); return View(customer); }