コード例 #1
0
        public async Task <Forecast.Domain.Entity.Forecast> Load()
        {
            try
            {
                ForecastModel forecastModel = await _repository.FetchCurrentForecast();

                ITarget target = new ForecastAdapter(forecastModel);
                return(target.GetForecast());
            }
            catch (Exception e)
            {
                throw new ServiceUnavailable(String.Format("Não foi possível capturar resultado forecast: [{0}]", e.Message));
            }
        }