public async Task <IActionResult> Index(string collectionName, CancellationToken cancellationToken) { var collection = _collectionsService.GetReferenceDataCollection(collectionName); var model = await _referenceDataService.GetSubmissionsPerCollectionAsync( Utils.Constants.ReferenceDataStorageContainerName, collection.CollectionName, collection.ReportName, cancellationToken : cancellationToken); model.CollectionDisplayName = collection.DisplayName; model.HubName = collection.HubName; model.FileExtension = collection.FileFormat; return(View("FileUpload", model)); }
private async Task <ReferenceDataViewModel> RefreshModelData(string collectionName, CancellationToken cancellationToken) { var collection = _collectionsService.GetReferenceDataCollection(collectionName); var model = await _referenceDataProcessService.GetProcessOutputsForCollectionAsync( Utils.Constants.ReferenceDataStorageContainerName, collection.CollectionName, collection.ReportName, FileNameExtensionConsts.CSV, collection.FileNameFormat, collection.FileFormat, cancellationToken : cancellationToken); model.CollectionDisplayName = collection.DisplayName; model.HubName = collection.HubName; model.FileExtension = collection.FileFormat; return(model); }