public View ( long id ) : System.Web.Mvc.ActionResult | ||
id | long | |
return | 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);
}
}