Exemplo n.º 1
0
        public async Task <IActionResult> WeatherForecasts()
        {
            try
            {
                var resfromWebapi = await _weatherDataService.GetWeatherForcastData();

                return(StatusCode(200, resfromWebapi));
            }catch (MicroServiceCallException ex)
            {
                return(StatusCode(503, Json("Could get data from microservices")));
            }
        }