public IActionResult Cancel(int jobStateId) { _jobManager.CancelAsync(jobStateId).Wait(); return(Ok(new { Message = "Request Completed", JobStateId = jobStateId })); }