public async Task <IActionResult> GetPublicationAsHTML([FromRoute] string publicationId) { var publication = await _publicationService.GetByIdWithValidationAsync(publicationId); var publicationHtml = await _publicationService.DownloadPublicationAsHtmlAsync(publicationId); return(File(publicationHtml, Constants.HtmlContentType, publication.title + ".html")); }