Пример #1
0
        public static List <Teacher> TeacherList()
        {
            var result = (from teacher in SAADBContext.GetInstance().Teachers
                          let FullName = teacher.LastName + ", " + teacher.FirstName
                                         select teacher
                          ).ToList();

            return(result);
        }
Пример #2
0
 public int GetStudentId(string studentno)
 {
     return(SAADBContext.GetInstance().Students.SingleOrDefault(t => t.StudentNo == studentno).StudentId);
 }