Exemple #1
0
        public IHttpActionResult ShortPowerButtonPress([FromUri] string token)
        {
            if (!tokenValidator.IsValid(token))
            {
                return(Unauthorized());
            }

            powerButton.PressPowerButton();

            return(Ok());
        }