Ejemplo n.º 1
0
    private async Task SubscribeCommandExecute(ShowViewModel vm)
    {
        var podcastToRemove = SubscribedShows.Where(pod => pod.Show.Id == vm.Show.Id).FirstOrDefault();

        if (podcastToRemove != null)
        {
            await subscriptionsService.UnSubscribeFromShowAsync(vm.Show);

            SubscribedShows.Remove(podcastToRemove);
            MessagingCenter.Instance.Send <string>(".NET Pods", "UnSubscribe");
        }
    }
Ejemplo n.º 2
0
    private async Task SubscribeCommandExecute(ShowViewModel vm)
    {
        await subscriptionsService.UnSubscribeFromShowAsync(vm.Show);

        vm.IsSubscribed = subscriptionsService.IsSubscribed(vm.Show.Id);
    }