Exemplo n.º 1
0
        public static TeacherSchool CreaTeacherSchool(School School, Teacher Teacher)
        {
            var NewTeacherSchool = new TeacherSchool()
            {
                Teacher = Teacher,
                School  = School
            };

            return(NewTeacherSchool);
        }
Exemplo n.º 2
0
 public void AddNewTeacherSchool(TeacherSchool teacherSchool)
 {
     db.TeacherSchoolSet.Add(teacherSchool);
     db.SaveChanges();
 }