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