Ejemplo n.º 1
0
        public HttpResponseMessage Post([FromBody] WeatherCity weathercityModel)
        {
            DatabaseQueryWeather.addWeatherForACity(weathercityModel);

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