public async Task <ActionResult <Job> > GetState(Guid id) { Job job = await _jobManagementService.GetState(id); if (job == null) { return(NotFound()); } return(Ok(job)); }