public ProcessExecutionViewModel GetExecutionView(ProcessExecutionViewModel executionView)
        {
            executionView.AgentName   = agentRepo.GetOne(executionView.AgentID)?.Name;
            executionView.ProcessName = processRepo.GetOne(executionView.ProcessID)?.Name;

            return(executionView);
        }
Beispiel #2
0
        public async Task <IActionResult> View(string id)
        {
            try
            {
                IActionResult actionResult = await base.GetEntity <ProcessExecutionViewModel>(id);

                OkObjectResult okResult = actionResult as OkObjectResult;

                if (okResult != null)
                {
                    ProcessExecutionViewModel view = okResult.Value as ProcessExecutionViewModel;
                    view = processExecutionLogManager.GetExecutionView(view);
                }

                return(actionResult);
            }
            catch (Exception ex)
            {
                return(ex.GetActionResult());
            }
        }