Beispiel #1
0
        public async Task <IEnumerable <DailyForecast> > Get()
        {
            try
            {
                var result = await _weatherService.GetByLocation(BELFAST);

                return(result.ToArray());
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);

                return(null);
            }
        }