Exemplo n.º 1
0
        public bool viewReports()
        {
            Clear();
            WriteLine("\n1---Accounts By Amount\n2--- Transaction By Date");
            adminDelegator vr = GetInput('1', '2') switch
            {
                '1' => accountsByAmmount,
                '2' => transactionsByDate
            };

            return(vr.Invoke());
        }
Exemplo n.º 2
0
        public override bool selectMenu(char selectedMenu)
        {
            adminDelegator d1 = null;

            d1 = selectedMenu switch
            {
                '1' => createAccount,
                '2' => deleteAccount,
                '3' => updateAccount,
                '4' => SearchAccount,
                '5' => viewReports,
                '6' => Exit,
                _ => Exit
            };
            return(d1.Invoke());
        }