/// <summary> /// Allows a verified member to return a movie from their movie records /// </summary> public static void returnBorrowedMovie() { Console.Write("What movie would you like to return? "); string loanedMovieTitle = Console.ReadLine(); //check if the member has borrowed the movie if (MemberMovies.checkBorrowed(loanedMovieTitle)) { //remove the loaned movie from the member's movie record MemberMovies.returnMovie(loanedMovieTitle); Console.WriteLine("You have successfully returned {0}", loanedMovieTitle); //Return a copy of the movie to the movie collection (if movie hasn't been deleted from movie collection) Movie returnedMovie = MovieCollection.Search(loanedMovieTitle); if (returnedMovie != null) { returnedMovie.movieCopies++; } } else //given movie title doesn't exist in the member's movie record { Console.WriteLine("You don't have the movie {0} to return...", loanedMovieTitle); } }