예제 #1
0
        public IHttpActionResult GetUserLevel(string sessionKey)
        {
            int userLevel = AuthHandler.GetUserLevel(sessionKey, db);

            if (userLevel == -1)
            {
                return(NotFound());
            }
            return(Ok(userLevel));
        }