Example #1
0
        public async Task <IActionResult> TestOneClose([FromBody] PushSubscription sub)
        {
            var(isSuccess, _) = await _pushNotificationService.SendCloseToOneDeviceAsync(User.GetId(), sub.Endpoint, "test one");

            return(isSuccess ? Ok() : StatusCode(500));
        }