Beispiel #1
0
        public JsonResult GetCityId(int CityId)
        {
            var towns = _townService.GetByCityId(CityId);

            towns.Insert(0, new Town {
                TownId = 0, TownName = "Seçiniz", CityId = 0
            });
            return(Json(new SelectList(towns, "TownId", "TownName")));
        }