예제 #1
0
        public JsonResult GetRecord(string prefix)
        {
            DataSet       ds         = dblayer.GetName(prefix);
            List <search> searchlist = new List <search>();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                searchlist.Add(new search
                {
                    C_id   = dr["C_id"].ToString(),
                    C_Name = dr["C_Name"].ToString()
                });
            }

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