Пример #1
0
 public void AddTeachers(Teachers teachersToAdd)
 {
     this.Context.Teachers.Add(teachersToAdd);
     this.SaveChanges();
 }
Пример #2
0
 public void RemoveTeachers(Teachers remToTeachers)
 {
     this.Context.Teachers.Remove(remToTeachers);
     this.SaveChanges();
 }
Пример #3
0
 public List <Teachers> FindByTeachersName(Teachers teachers)
 {
     return(this.Context.Teachers.Where(p => p.Teachers_name == teachers.Teachers_name).ToList());
 }