/// <summary> /// 获取正在参与学习的学生 /// </summary> /// <returns></returns> public ApiModels.Student GetStudyStudent(long studentId) { return(AllStudents.Where(m => m.id == studentId).FirstOrDefault()); }
/// <summary> /// 获取正在参与学习的学生列表 /// </summary> /// <returns></returns> public List <ApiModels.Student> GetStudyStudents() { return(AllStudents.Where(m => StudentIds.Any(c => m.id == c)).ToList()); }