コード例 #1
0
        public void EmployeeMenu()

        {
            int?choice = MenuUtils.GetIntChoice(MenuUtils.EmployeeMenu(), 1, 4);



            PrintFromDb <Employee>((EmployeeContext db) =>
            {
                return(db.Employees.AsNoTracking().ToList());
            });



            switch (choice)

            {
            case 1:

                SalaryChargeMenu((EmployeeContext db) =>

                {
                    return(db.Employees.AsNoTracking().Sum(x => x.Salary));
                }, EmployeeMenu);

                break;

            case 2:

                EmployeeMenuFiltered();

                break;

            case 3:

                CUDEmployee();

                break;

            case 4:

                MainMenu();

                break;

            default:

                break;
            }
        }