常用方法
常用方法
常用方法
常用方法
public WeatherController(IWeatherService weatherService) { _weatherService = weatherService; if (!_weatherService.HasItems()) { _weatherService.AddItems(); } }
public WeatherController(IWeatherService weatherService) { _weatherService = weatherService; if (!_weatherService.HasItems()) { _weatherService.AddItems(); } }