public Update ( Account account ) : System.Web.Mvc.ActionResult | ||
account | Account | |
Результат | System.Web.Mvc.ActionResult |
public ActionResult Update(Account account)
{
if (ModelState.IsValid) {
repository.Save(account);
return RedirectToAction("Show", account.Id);
}
return View("Edit", account);
}