コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }