public ActionResult _Weather(string station, int year, int month) { IEnumerable <Weather> result; using (var db = new WeatherDataContext()) { var q = from w in db.Weather where w.Station == station && w.Date.Year == year && w.Date.Month == month select w; result = q.ToList(); } return(Json(result)); }
public FetchDataService(WeatherDataContext weatherDataContext) { _weatherDataContext = weatherDataContext; }
public AddDataService(WeatherDataContext weatherDataContext) { _weatherDataContext = weatherDataContext; }