Ejemplo n.º 1
0
        /// <summary>
        /// Renders the users borrowed Movies
        /// </summary>
        private static void AllBorrowedMovies()
        {
            Console.Clear();
            Console.WriteLine("========Your Borrowed Movies=========");

            // Get member and list movie string
            MemberCollection.FindMember(m => m.FullName == full_name, out var member);

            if (member.Movies.Length == 0)
            {
                Console.WriteLine(" No Borrowed Movies");
            }

            for (int i = 0; i < member.Movies.Length; i++)
            {
                Console.WriteLine($" {i+1}. {member.Movies[i]}");
            }

            End();
        }