示例#1
0
        public ActionResult FilterFromTown(string townId)
        {
            var result = string.Empty;

            if (string.IsNullOrEmpty(townId))
            {
                result = "-1,-1,-1";
            }
            else
            {
                var townModel = new TownModel();
                var townItem  = townModel.GetSpecificTown(int.Parse(townId));

                result = townItem.Local_Municipality.District.Province_Id + "," + townItem.Local_Municipality.District_Municipality_Id + "," + townItem.Local_Municipality_Id;
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }