public DataTable GetList(PagerQueryParam Pager, out int total, int id) { try { DBResourceUpload db = new DBResourceUpload(); DataTable dt = db.GetList(Pager, out total); if (dt == null) { return(null); } DBResourceDetail dbResource = new DBResourceDetail(); ResourceDetailEntity dbEntity = dbResource.GetInfo(id); DataTable dtNew = new DataTable(); dtNew.Columns.Add("id", typeof(int)); dtNew.Columns.Add("url", typeof(string)); dtNew.Columns.Add("name", typeof(string)); foreach (DataRow dataRow in dt.Rows) { dtNew.Rows.Add(new object[] { dataRow["id"], dbEntity.Url + dataRow["files_dir"] + "/" + dataRow["files_name"], dataRow["files_name"] }); } return(dtNew); } catch (Exception e) { throw; } }