示例#1
0
        // GET api/job/5
        public JobStatus Get(string id)
        {
            string status = client.GetJobStatus(id);

            if (status == null)
            {
                return new JobStatus()
                       {
                           JobId = null, Status = "Job not found."
                       }
            }
            ;
            return(new JobStatus()
            {
                JobId = id, Status = status
            });
        }