public async Task <IActionResult> Index() { var response = new HomeViewModel(); try { response = await _homeService.RecuperarDadosIniciaisHomeAsync(); } catch (Exception e) { return(CreateServerErrorResponse(e)); } return(CreateResponse(response)); }
public async Task <IActionResult> Index() { var homeViewModel = await _homeService.RecuperarDadosIniciaisHomeAsync(); return(View(homeViewModel)); }
public Task <HomeViewModel> ServiceRetornaDadosValidos(IHomeInfoService homeService) { var dadosIniciaisHome = homeService.RecuperarDadosIniciaisHomeAsync(); return(dadosIniciaisHome); }