Esempio n. 1
0
 /// <summary>
 /// Method to Download template for UserToUserMapping.
 /// </summary>
 /// <returns>File to browser's response.</returns>
 public async Task <ActionResult> DownloadTemplateAsync()
 {
     using (var memStream = await AzureStorageHelper.DownloadFileFromBlobAsync(
                this.appSettings.StorageConnectionString,
                this.appSettings.TemplatesContainerName,
                this.appSettings.KronosShiftUserMappingTemplateName,
                this.telemetryClient).ConfigureAwait(false))
     {
         return(this.File(memStream.ToArray(), this.appSettings.ExcelContentType, this.appSettings.KronosShiftUserMappingTemplateName));
     }
 }