public HttpResponseMessage Post([FromBody] WeatherCity weathercityModel) { DatabaseQueryWeather.addWeatherForACity(weathercityModel); return(Request.CreateResponse(HttpStatusCode.OK)); }
public JsonResult <List <WeatherCity> > Get(DateTime day) { return(this.Json(DatabaseQueryWeather.getWeatherByDayForAllCities(day))); }
public JsonResult <List <WeatherCity> > Get() { return(this.Json(DatabaseQueryWeather.getWeatherForAllCitiesAndAllDays())); }
public JsonResult <WeatherCity> Get(string city, DateTime day) { return(this.Json(DatabaseQueryWeather.getWeatherByDayAndCity(city, day))); }