Beispiel #1
0
        public IHttpActionResult PutPermissions(int userLevel, int userId)
        {
            bool success = false;

            if (myUser != null)
            {
                success = myUser.ChangeUserLevel(userLevel, userId);
            }
            if (success)
            {
                return(Ok());
            }
            else
            {
                return(NotFound());
            }
        }