public async Task <ActionResult <SortJob> > GetJob(Guid jobId)
        {
            // TODO: Should return a specific job by ID.
            var result = await _sortJobProcessor.GetJob(jobId);

            _logger.LogInformation($"data id:{result.Id}");
            return(Ok(result));
        }
Exemplo n.º 2
0
        public ActionResult <SortJob?> GetJob(Guid jobId)
        {
            var result = _sortJobProcessor.GetJob(jobId);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
Exemplo n.º 3
0
 public ActionResult <SortJob> GetJob(Guid jobId)
 {
     try
     {
         var job = _sortJobProcessor.GetJob(jobId);
         return(Ok(job));
     }
     catch (ArgumentException error)
     {
         return(NotFound(error.Message));
     }
 }
Exemplo n.º 4
0
 public ActionResult <SortJob> GetJob(Guid jobId)
 {
     return(_sortJobProcessor.GetJob(jobId.ToString()));
 }
 public async Task <ActionResult <SortJob> > GetJob(Guid jobId)
 {
     return(Ok(await _sortJobProcessor.GetJob(jobId)));
 }
Exemplo n.º 6
0
        public async Task <ActionResult <SortJob> > GetJob(Guid jobId)
        {
            var getJob = await _sortJobProcessor.GetJob(jobId);

            return(Ok(getJob));
        }