Esempio n. 1
0
 public ActionResult Edit(long id, Customer customer)
 {
     customer.ID = id;
     Repository.Edit(customer);
     return RedirectToAction("Details", new { id = customer.ID });
 }
Esempio n. 2
0
 public ActionResult Create(Customer customer)
 {
     var cust = Repository.Create(customer);
     return RedirectToAction("Details", new { id = cust.ID });
 }