private JsonResult CallNext(int id, QueueType qType) { Queue q = _queueService.CallNext(id, qType); if (!(q is null)) _client.CallNext(q); return new JsonResult() { Data = q is null ? new Queue() : q, JsonRequestBehavior=JsonRequestBehavior.AllowGet }; }