public DataTable GetAllByReader(int cat_ID) { string sql = "SELECT * FROM Tasks where Complete = 0 and Category_ID =" + cat_ID; using (SqlDataAdapter reader = dataAccess.GetDataByAdapter(sql)) { DataTable dt = new DataTable(); reader.Fill(dt); return(dt); } }