public async Task <IEnumerable <WeatherModel> > GetWeather(int id, DateTime startDate, DateTime endDate) { try { var station = await _stationRepository.GetById(id).ConfigureAwait(false); return(await _weatherClient.GetData(station.StationId, startDate, endDate).ConfigureAwait(false)); } catch (Exception e) { _logger.LogError("Error occurred getting data for id. {exception}, {id}", e, id); return(new List <WeatherModel>()); } }