public WeatherHistoryController(IWeatherHistoryService _weatherHistoryService)
 {
     weatherHistoryService = _weatherHistoryService;
 }
 public WeatherHistoryController(ILogger <WeatherHistoryController> logger, IWeatherHistoryService weatherHistoryService)
 {
     _weatherHistoryService = weatherHistoryService;
     _logger = logger;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StatsController"/> class.
 /// </summary>
 /// <param name="weatherHistoryService">The weather history service.</param>
 public StatsController(IWeatherHistoryService weatherHistoryService)
 {
     _weatherHistoryService = weatherHistoryService;
 }