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