public async Task UnsubscribeDeviceAsync(PushDeviceRequest request) { Ensure.That(request, nameof(request)).IsNotNull(); await CheckUserProfile(request.UserId); await _pushSubscriber.UnsubscribeDeviceAsync(request.DeviceToken); }
public async Task UnsubscribeDeviceFromPushAsync(CreatePushTokenRequest model) { Ensure.That(model, nameof(model)).IsNotNull(); await _pushNotificationSubscriber.UnsubscribeDeviceAsync(model.Token); }