public void Update(Lecturer updatedlect)
 {
     Lecturer lect = _db.Lecturers.Find(updatedlect.Id);
     lect.Name = updatedlect.Name;
     lect.Qualification = updatedlect.Qualification;
     _db.SaveChanges();
 }
Exemplo n.º 2
0
 public LecturerGrid(Lecturer lect)
 {
     this.Id = lect.Id;
     this.Name = lect.Name;
 }
 public void Create(Lecturer lect)
 {
     _db.Lecturers.Add(lect);
     _db.SaveChanges();
 }