//通过性别及年级Id获取学生 public static List <Student> GetAllStudentByStuIdAndGender(int?id = null, string gender = null) { try { return(StudentDAL.GetAllStudentByStuIdAndGender(id, gender)); } catch (Exception) { throw; } }