Esempio n. 1
0
        public static void CreateSwitch()
        {
            StandardMessages.SelectItem("create");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                MenuOptions.CreateBook();
                break;

            case "2":
                MenuOptions.CreateMovie();
                break;

            default:
                CommonClasses.StandardMessages.InvalidOption();
                break;
            }
        }
Esempio n. 2
0
        public static void ReturnItem(Member member)
        {
            StandardMessages.SelectItem("return");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                CommonClasses.ReturnItem.UpdateBookLoan(member);
                break;

            case "2":
                CommonClasses.ReturnItem.UpdateMovieLoan(member);
                break;

            default:
                CommonClasses.StandardMessages.InvalidOption();
                break;
            }
        }