public ActionResult Index() { ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; var account = accountByUserNameQuery.Execute("jdheywood"); return(View(account.Result)); }
public IHttpActionResult Get(string accountName) { try { var accountResult = accountByUserNameQuery.Execute(accountName); if (!accountResult.IsSuccessful) { accountResult = accountByTeamNameQuery.Execute(accountName); } return(!accountResult.IsSuccessful ? httpActionResultFactory.Create(accountResult, Request) : Ok(mapper.Map <AccountResponseDto>(accountResult.Result))); } catch (Exception ex) { // TODO Introduce logging for this } return(new NoContent(Request)); }