public void Add <T> (T entity) where T : class { _context.Add(entity); }
public void Add<T>(T entity) where T : class { _logger.LogInformation($"Adding an object of type {entity.GetType()} to the context."); _context.Add(entity); }