public ActionResult SaveUpdateCountry(CountryModel model) { try { return(Json(new { result = 1, ID = model.SaveUpdateCountry(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }