예제 #1
0
        public HttpResponseMessage Post([FromBody] WeatherCity weathercityModel)
        {
            DatabaseQueryWeather.addWeatherForACity(weathercityModel);

            return(Request.CreateResponse(HttpStatusCode.OK));
        }
예제 #2
0
 public JsonResult <List <WeatherCity> > Get(DateTime day)
 {
     return(this.Json(DatabaseQueryWeather.getWeatherByDayForAllCities(day)));
 }
예제 #3
0
 public JsonResult <List <WeatherCity> > Get()
 {
     return(this.Json(DatabaseQueryWeather.getWeatherForAllCitiesAndAllDays()));
 }
예제 #4
0
 public JsonResult <WeatherCity> Get(string city, DateTime day)
 {
     return(this.Json(DatabaseQueryWeather.getWeatherByDayAndCity(city, day)));
 }