Ejemplo n.º 1
0
        public IHttpActionResult Nickname(int queueId)
        {
            int uid = Auth.CheckToken(Request.Headers);

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

            var nickname = UserAccessManager.GetNickname(uid, queueId);

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