Esempio n. 1
0
        public JsonResult GetCitiesbyState(CitiesModel cm)
        {
            var res = "";

            try
            {
                string jsr = mps.GetCitiesbyState(cm);
                return(Json((new JavaScriptSerializer()).DeserializeObject(jsr), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                res = ex.Message.ToString();
                return(Json(res, JsonRequestBehavior.AllowGet));
            }
        }