private async Task ApplyMovieSelection(MovieDbMovie movieDto) { Movie = await MovieService.ApplyDtoData(Movie, movieDto); OnMovieChanged?.Invoke(this, Movie); RaisePropertyChanged(nameof(Movie)); RaisePropertyChanged(nameof(Genres)); }
public async Task UndoChanges() { // Zurücksetzen aller Änderungen wenn Eingaben ungültig und Page verlassen wird Movie origionalMovie = await Resolver.Resolve <IMovieService>().GetWithGenresAndSourcesAsync(Movie.Id); if (origionalMovie != null) { Movie = origionalMovie; OnMovieChanged?.Invoke(this, Movie); } }
public async Task SaveChanges() { Movie = await MovieService.SaveMovieAsync(Movie); OnMovieChanged?.Invoke(this, Movie); }