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