public static void ReturnMovie(string username) { //ask user input Console.Write("Enter the movie you wish to return: "); string movie = Console.ReadLine(); //check to see if user currently has the movie if (MemberCollection.CheckIfBorrowed(movie, username)) { //add movie back in collection movieCollectionTree.ReturnMovie(movie, username); } //user does not currently have the movie else { //display Console.WriteLine("You are not currently borrowing that movie"); } }
public static void BorrowMovie(string username) { //ask for user input Console.Write("Enter a movie you wish to borrow: "); string movie = Console.ReadLine(); //check to see if already borrowing if (MemberCollection.CheckIfBorrowed(movie, username)) { //if borrowing Console.WriteLine("You are already borrowing this movie"); } //check to see if already borrowing 10 movies else if (MemberCollection.CheckIfMax(username)) { Console.WriteLine("You are already borrowing the max amount of movies"); } //not already borrowing & hasn't borrowed 10 movies else { //borrow movie from collection movieCollectionTree.BorrowMovie(movie, username); } }