Пример #1
0
 public void AddStudentToActivity(Activity activity, Student student)
 {
     _context.Add(new Student_Activity
     {
         StudentId  = student.Id,
         ActivityId = activity.Id,
         Student    = student,
         Activity   = activity,
     });
     _context.SaveChanges();
 }
 public void AddStudentToSemester(Semester semester, Student student)
 {
     _context.Add(new Semester_Student
     {
         StudentId  = student.Id,
         SemesterId = semester.Id,
         Student    = student,
         Semester   = semester,
     });
     _context.SaveChanges();
 }
Пример #3
0
 public void Add(Semester newSemester)
 {
     _context.Add(newSemester);
     _context.SaveChanges();
 }
Пример #4
0
 public void Add(Activity newActivity)
 {
     _context.Add(newActivity);
     _context.SaveChanges();
 }
Пример #5
0
 public void Add(Course newCourse)
 {
     _context.Add(newCourse);
     _context.SaveChanges();
 }
Пример #6
0
 public void Add(Teacher newTeacher)
 {
     _context.Add(newTeacher);
     _context.SaveChanges();
 }
Пример #7
0
 public void Add(Student newStudent)
 {
     _context.Add(newStudent);
     _context.SaveChanges();
 }
Пример #8
0
 public void Add(Subject newSubject)
 {
     _context.Add(newSubject);
     _context.SaveChanges();
 }