private static void EnableAssets(IEnumerable <string> assetIds) { ResetOutputCounter(); Console.ResetColor(); Console.WriteLine("Enabling assets..."); Parallel.ForEach(assetIds, assetId => { var operationResult = ""; var operationSucceeded = true; try { _assetsService.AssetEnable(assetId); operationResult = "asset enabled"; } catch (Exception e) { operationResult = e.ToOperationResult(); operationSucceeded = false; } OutputOperationResult(assetId, operationResult, operationSucceeded); }); }