コード例 #1
0
        public IHttpActionResult IsPushAllowed([FromUri]string sessionKey, SetPushAllowedRequest request)
        {
            var pushService = new PushService();
            var ok = pushService.SetPushAllowed(sessionKey, request.IsAllowed);

            if (ok) return Ok();
            return Unauthorized();
        }
コード例 #2
0
        public IHttpActionResult IsPushAllowed([FromUri] string sessionKey, SetPushAllowedRequest request)
        {
            var pushService = new PushService();
            var ok          = pushService.SetPushAllowed(sessionKey, request.IsAllowed);

            if (ok)
            {
                return(Ok());
            }
            return(Unauthorized());
        }