コード例 #1
0
        public JsonResult getSubCategory(int id)
        {
            sp_ilce ilce = new sp_ilce();

            ilce.sehir_id = id;
            DataTable     dt = database.GetDataFromDatabase(ilce);
            List <string> x  = new List <string>();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                x.Add(dt.Rows[i].ItemArray[0].ToString());
            }
            return(Json(x, JsonRequestBehavior.AllowGet));
        }