示例#1
0
        public async Task <IActionResult> GetJobQueueByCode(int projectId, string queueCode)
        {
            _logger.LogInformation("Getting job queue {queueCode} in project {projectId}", queueCode, projectId);

            var job = await _jobQueueService.GetJobQueueByCode(projectId, queueCode);

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

            return(Ok(result));
        }
示例#2
0
        public async Task <IActionResult> GetJobQueueByCode(int projectId, string queueCode)
        {
            _logger.LogRequest("Getting job queue {queueCode} in project {projectId}", queueCode, projectId);

            var job = await _jobQueueService.GetJobQueueByCode(projectId, queueCode);

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

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

            return(Ok(result));
        }