Ejemplo n.º 1
0
        public void StaffFindMember()
        {
            Console.Clear();
            Console.Write("==========Member Lookup==========\n" +
                          "First Name: ");
            string firstName = Console.ReadLine();

            Console.Write("Last Name: ");
            string lastName = Console.ReadLine();

            try
            {
                Member result = memberCollection.MemberSearch(firstName, lastName);
                Console.Write("==========Member Lookup==========\n" +
                              "Results: Phone number for " + firstName + " " + lastName + " is " + result.PhoneNumber +
                              "\nPress any key to return to the main menu.");
                Console.ReadKey();
            }
            catch (Exception e)
            {
                ErrorView.Error(e);
            }
        }