public EditRechargeAccount ( int id ) : System.Web.Mvc.ActionResult | ||
id | int | |
Результат | System.Web.Mvc.ActionResult |
public ActionResult EditRechargeAccount(int id)
{
var rechargeAccount = _repositoryFactory.RechargeAccountRepository.GetNullableById(id);
if (rechargeAccount == null)
{
Message = "Recharge account could not be found.";
return RedirectToAction("RechargeAccounts");
}
return View(RechargeAccountViewModel.Create(rechargeAccount));
}
PIController::EditRechargeAccount ( int id, RechargeAccount rechargeAccount ) : System.Web.Mvc.ActionResult |