public override void OnNavigatedTo(NavigationParameters parameters) { var lela = new Captain() { Id = 1, Name = "Leela" }; var ship = new Ship() { Captain = lela, Capacity = 4, CaptainId = 1, Id = 1, Name = "Planet Express Ship" }; Repository.Context.Add(lela); Repository.Context.Add(ship); Repository.Context.Commit(); NavService.NavigateAsync("UpdatePage"); base.OnNavigatedTo(parameters); }
private async Task OpenPodcastView(PodcastModel podcast) { await NavService.NavigateAsync <PodcastViewModel, PodcastModel>(podcast); }
private async Task OpenInformationView() { await NavService.NavigateAsync <InformationViewModel>(); }