public async Task <IActionResult> GetAllDocuments() { var documents = _documentRepository.GetAllDocuments(); foreach (var document in documents) { document.Url = await _azureStorageService.GetDocumentUrlAsync(document.DocumentName, document.DocumentCategoryId); } return(Ok(documents)); }