public ActionResult form(string country, string city) { var weatherDatas = WeatherService.ChceckAdress(country, city); if (weatherDatas == null || weatherDatas.Count == 0) { var error = JsonConvert.SerializeObject(new BaseApiResponse() { Message = "not found location", Success = false, }); return(this.Content(error, "application/json")); } WeatherService.SetWeathersFromSession(weatherDatas); var json = JsonConvert.SerializeObject(new BaseApiResponse() { Message = "ok", Success = true, }); return(Content(json, "application/json")); }