public void Delete(Salon salon)
 {
     _logger.LogInformation("Delete Salon entity from database");
     _context.Remove(salon);
 }
Exemple #2
0
 public void Delete <T>(T entity) where T : class
 {
     _logger.LogInformation($"Removing an object of type {entity.GetType()} in the context");
     _context.Remove(entity);
 }
 public void Delete <T>(T entity) where T : class
 {
     _context.Remove(entity);
 }