public async Task <IActionResult> GetLatestArticleEntry(Guid articleId) { var result = await _getLatestArticleEntryStrategy.FindLatestEntry(articleId); if (result == null) { return(NotFound()); } var response = MapEntryResponse(result); return(Ok(response)); }
public async Task <string> GetLatestConvertedEntryContentUri(Guid articleId) { var latestEntry = await _getLatestArticleEntryStrategy.FindLatestEntry(articleId); if (latestEntry == null) { return(string.Empty); } return(!string.IsNullOrWhiteSpace(latestEntry.ConvertedBlobUrl) ? StringUtilities.FromBase64(latestEntry.ConvertedBlobUrl) : await ConvertAndPersistEntryContent(latestEntry)); }