public IActionResult Enqueue([FromBody] CommandRequest commandRequest) { var jobs = new[] { commandRequest.Command }; var id = BackgroundJob.EnqueueTo(commandRequest.Queue, () => new SendFire.Common.Process.CommandLineExecutionProvider().ProcessCommands(jobs, true, 0)); return(Json(new { id = id })); }