Ejemplo n.º 1
0
        /// <summary>
        /// Renders the borrow movie screen
        /// </summary>
        private static void BorrowMovie()
        {
            Console.Clear();
            Console.WriteLine("==========Borrow Movie===========");

            var movieTitle = Input.ReadString("Movie Title: ", new Regex(".*"));

            if (MovieCollection.TryBorrow(movieTitle) && MemberCollection.BorrowMovie(full_name, movieTitle))
            {
                Console.WriteLine($" Successfully Borrowed");
            }
            else
            {
                Console.WriteLine(" Error Borrowing Movie");
            }

            End();
        }