public async Task UploadDocuments(Dictionary <Tuple <long, string>, byte[]> docsToUpload)
        {
            var categoryModel = new GeneralCategoryModel()
            {
                DocumentType = cmbDocumentType.Text,
                Year         = dtpYear.Text,
                Term         = cmbTerm.Text,
                NodeId       = WorkSpacesEnum.GetValue(WorkSpacesEnum.WorkSpaces.GeneralCategoryNodeId)
            };

            var emdNew = _serviceHelper.CategoryMaker(categoryModel);

            foreach (var item in docsToUpload)
            {
                await Task.Run(() => _serviceHelper.AddDocumentWithMetaData(item.Key.Item1, item.Key.Item2, item.Value, emdNew));
            }
        }
        private async Task UploadDocuments(Dictionary <Tuple <long, string>, byte[]> docsToUpload)
        {
            var categoryModel = new GeneralCategoryModel()
            {
                DocumentType = cmbDocumentType.Text,
                Year         = dtpDistributorYear.Text,
                Term         = cmbDistriborTerm.Text,
                NodeId       = WorkSpacesEnum.GetValue(WorkSpacesEnum.WorkSpaces.GeneralCategoryNodeId)
            };

            var emdNew = _serviceHelper.CategoryMaker(categoryModel);

            foreach (var item in docsToUpload)
            {
                if (VariableHelper.Cts.IsCancellationRequested)
                {
                    return;
                }
                await Task.Run(() => _serviceHelper.AddDocumentWithMetaData(item.Key.Item1, item.Key.Item2, item.Value, emdNew), VariableHelper.Cts.Token);
            }
            MessageBox.Show(Resources.ProcessIsDone);
        }