public void RemoveMovieList(MovieList ml) { if (MovieLists == null) { throw new Exception("List of MovieLists is null"); } if (!MovieLists.Contains(ml)) { throw new Exception("Movie list was not found"); } else { MovieLists.Remove(ml); } }
public void AddMovieList(MovieList ml) { if (MovieLists == null) { throw new Exception("List of MovieLists is null"); } if (MovieLists.Contains(ml)) { throw new Exception("User already has this list of movies in their library"); } else { MovieLists.Add(ml); } }