public async Task <string> GetDownloadTokenForBusinessLicenceDocument(int siteId) { var licence = await _siteService.GetBusinessLicenceAsync(siteId); return(await _documentManagerClient.CreateDownloadTokenAsync(licence.BusinessLicenceDocument.DocumentGuid)); }
public async Task <ActionResult <string> > GetFileFromDocumentManager(Guid documentGuid) { var token = await _client.CreateDownloadTokenAsync(documentGuid); return(Ok(ApiResponse.Result(token))); }