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