예제 #1
0
        public JsonResult GetCountryList()
        {
            var res = "";

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