public async Task <IActionResult> GetJobTaskDefinition(int projectId, int jobId, int taskId)
        {
            _logger.LogInformation("Getting job task definition {taskId} in job definition {jobId}, project {projectId}", taskId, jobId, projectId);

            var jobTaskDefinition = await _jobDefinitionService.GetJobTaskDefinitionById(taskId);

            var result = _mapper.Map <JobTaskDefinitionDto>(jobTaskDefinition);

            return(Ok(result));
        }
예제 #2
0
        public async Task <IActionResult> GetJobTaskDefinition(int projectId, int jobId, int taskId)
        {
            _logger.LogRequest("Getting job task definition {taskId} in job definition {jobId}, project {projectId}", taskId, jobId, projectId);

            var jobTaskDefinition = await _jobDefinitionService.GetJobTaskDefinitionById(taskId);

            var result = _mapper.Map <JobTaskDefinitionDto>(jobTaskDefinition);

            _logger.LogResponse("Job task definition {taskId} in job {jobId} in project {projectId} retrieved. Response body: {@result}", taskId, jobId, projectId, result);

            return(Ok(result));
        }