public DataTable ClassStudent_Sel_Course_Department(string CourseID, string DepartmentID) { Staffdal t = new Staffdal(); DataSet ds = new DataSet(); DataTable dt = new DataTable(); ds = t.ClassStudent_Sel_Course_Department(CourseID, DepartmentID); if (ds.Tables.Count > 0) { dt = ds.Tables[0]; } return(dt); }