public List <AssetDTO> GetAssetListBySize(string term, bool IsArchive, int filesize) { DataTable dt = new DataTable(); List <AssetDTO> assetList = new List <AssetDTO>(); dt = assetDAO.GetAssetBySize(term, IsArchive, filesize); for (int i = 0; i < dt.Rows.Count; i++) { AssetDTO asset = new AssetDTO(); asset.AssetID = int.Parse(dt.Rows[i]["AssetID"].ToString()); asset.FileDate = dt.Rows[i]["FileDate"].ToString(); asset.Class_Code = (dt.Rows[i]["Class_Code"].ToString()); asset.Term = dt.Rows[i]["Term"].ToString(); asset.FileSize = int.Parse(dt.Rows[i]["filesize"].ToString()); assetList.Add(asset); } return(assetList); }