//[Produces(MimeTypes.Image.Jpeg, MimeTypes.Image.Png, MimeTypes.Image.Gif)] public async Task <FileResult> GetResource(GetDocumentResourceInput input) { input.Name = input.Name.RemovePreFix("/"); var documentResource = await _documentAppService.GetResourceAsync(input); var contentType = MimeTypes.GetByExtension(FileHelper.GetExtension(input.Name)); return(File(documentResource.Content, contentType)); }