/// <summary> /// Remove the parameter Movie from the Movies collection and remove the Movie /// from the WatchList inside the DB /// </summary> public async void Handle(RemoveFromWatchListMessage message) { var movieCard = message.MovieCard; if (GetMovieCard(movieCard) == null) { return; } try { Movies.Remove(movieCard); await OfflineDB.RemoveFromWatchList(CurrentUser, movieCard.Movie); } catch { StatusMessage.Enqueue("Error while removing the movie from the WatchList!"); Movies.Remove(movieCard); } }
public void Handle(RemoveFromWatchListMessage message) { UpdateMovie(message.MovieCard); }