public void Delete(Salon salon) { _logger.LogInformation("Delete Salon entity from database"); _context.Remove(salon); }
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); }