public bool DeleteTeacher(Teacher teacher)
 {
     _context.Remove(teacher);
     return(_context.SaveChanges() > 0);
 }
Exemple #2
0
 public Property Add(Property property)
 {
     _dbContext.Properties.Add(property);
     _dbContext.SaveChanges();
     return(property);
 }