ActivityLog.Controllers.CustomersController.Edit C# (CSharp) Méthode

Edit() private méthode

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();
			}
        }

Same methods

CustomersController::Edit ( int id ) : System.Web.Mvc.ActionResult