コード例 #1
0
        public ActionResult Create(Customer customer)
        {
            customers.Insert(customer);
            customers.Commit();

            return RedirectToAction("Index");
        }
コード例 #2
0
        public ActionResult Edit(Customer customer)
        {
            customers.Update(customer);
            customers.Commit();

            return RedirectToAction("Index");
        }
コード例 #3
0
 // GET: /Create
 public ActionResult Create()
 {
     var customer = new Customer();
     return View(customer);
 }