public IActionResult GetDetectionSteps(int configurationId) { var detectResult = PTMKernelService.GetDetectionOutcome(configurationId); return(Ok(new { Result = new { Status = detectResult.Status, Exception = detectResult.Exception == null ? string.Empty : detectResult.Exception.ToString(), }, DetectionSteps = PTMKernelService.GetDetectedSteps(configurationId) })); }