Пример #1
0
        public IHttpActionResult Access(int queueId)
        {
            int uid = Auth.CheckToken(Request.Headers);

            if (uid == 0)
            {
                return(StatusCode(HttpStatusCode.Forbidden));
            }

            var access = UserAccessManager.GetAccessType(uid, queueId);

            return(new ObjectResult(access, access.GetType(), Request));
        }