private Edit ( ActivityLog.Models.Customer customer ) : System.Web.Mvc.ActionResult | ||
customer | ActivityLog.Models.Customer | |
Résultat | System.Web.Mvc.ActionResult |
public ActionResult Edit(Customer customer)
{
if (ModelState.IsValid) {
customerRepository.InsertOrUpdate(customer);
customerRepository.Save();
return RedirectToAction("Index");
} else {
return View();
}
}
CustomersController::Edit ( int id ) : System.Web.Mvc.ActionResult |