Пример #1
0
        public async Task <IActionResult> GetJobQueue(int projectId, int queueId)
        {
            _logger.LogInformation("Getting job queue {queueId} in project {projectId}", queueId, projectId);

            var job = await _jobQueueService.GetJobQueueById(projectId, queueId);

            var result = _mapper.Map <JobDto>(job);

            return(Ok(result));
        }
Пример #2
0
        public async Task <IActionResult> GetJobQueue(int projectId, int queueId)
        {
            _logger.LogRequest("Getting job queue {queueId} in project {projectId}", queueId, projectId);

            var job = await _jobQueueService.GetJobQueueById(projectId, queueId);

            var result = _mapper.Map <JobDto>(job);

            _logger.LogResponse("Job queue {queueId} in project {projectId} retrieved. Response body: {@result}", queueId, projectId, result);

            return(Ok(result));
        }