public async Task <IActionResult> GetAnalysisResult(Guid id, [FromHeader] string authorization) { var model = JwtUtil.GetUserIdFromToken(authorization); try { var analysis = await _analysisService.GetByIdAsync(model.UserId, id); return(new OkObjectResult(new AnalysisFileResponse(analysis.ToAnalysisFile(model.UserId)))); } catch (InvalidOperationException exception) { return(new NotFoundResult()); } catch (StreamNotFoundException exception) { return(new NotFoundResult()); } }