public static string[] GetCitiesForDate(DateTime date) { using (var conn = GetConnection()) { var storer = new MySqlWeaterDataItemStorer(conn); return(storer.GetCitiesForDate(date)); } }
public static WeatherDataItem GetWeather(string city, DateTime date) { using (var conn = GetConnection()) { var storer = new MySqlWeaterDataItemStorer(conn); return(storer.GetWeather(city, date)); } }
public static void UpdateRecords(List <WeatherDataItem> items) { using (var conn = GetConnection()) { var storer = new MySqlWeaterDataItemStorer(conn); storer.UpdateRecords(items); } }