public virtual async Task UpdateManyAsync(IList <T> entities) { if (entities.Count == 0) { return; } _dbContext.UpdateRange(entities); try { await _dbContext.SaveChangesAsync(); } catch (DbUpdateException due) { _logger.LogError(due.Message, due.InnerException); throw; } }