public async Task <IActionResult> Get([FromQuery] ImageRequest request) { if (_imageUtility.ImageHash(request.Image) != request.Hash) { throw new SlackException("Invalid validation hash"); } var model = _imageUtility.DeserializeImage(request.Image); var(image, mimeType) = await _service.Render(model); return(File(image, mimeType)); }