public IHttpActionResult Queues() { int uid = Auth.CheckToken(Request.Headers); if (uid == 0) { return(StatusCode(HttpStatusCode.Forbidden)); } var queues = UserAccessManager.GetQueues(uid); return(new ObjectResult(queues, queues.GetType(), Request)); }