public override void Handle(IBulkClashDeleted command) { var clashes = _clashRepository.FindByExternal(command.Data.Select(c => c.Externalref).ToList()).ToList(); if (clashes.Any()) { _clashRepository.DeleteRange(clashes.Select(c => c.Uid)); _clashRepository.SaveChanges(); } else { _logger.Warn("Clashes can't be found with specified external references."); } }