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