Exemple #1
0
        private void GetData()
        {
            string url = "api/News/GetNewsTitleList";
            List <GetNewsListReturnDTO> resultDto = _apiAdaptor.Get <List <GetNewsListReturnDTO> >(url);

            DataTable dt = new DataTable();

            dt = ListToDataTable.ConvertToDataTable(resultDto);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }