public IHttpActionResult GetUserLevel(string sessionKey) { int userLevel = AuthHandler.GetUserLevel(sessionKey, db); if (userLevel == -1) { return(NotFound()); } return(Ok(userLevel)); }