AcklenAvenue.Data.Sample.MVC.Controllers.AccountController.View C# (CSharp) Метод

View() публичный Метод

public View ( long id ) : System.Web.Mvc.ActionResult
id long
Результат System.Web.Mvc.ActionResult
        public ActionResult View(long? id)
        {
            //pull the account from the fetcher
            Account account = _accountFetcher.Get(id.Value);

            //always map domain objects to models
            AccountModel mappedAccount = _mappingEngine.Map<Account, AccountModel>(account);

            //no view right now... it's just a sample
            return View(mappedAccount);
        }
    }
AccountController