Exemplo n.º 1
0
        public bool Execute(Command command)
        {
            switch (command.Type)
            {
            case "Create":
                var student = parser.GetStudent(command.Arguments);
                studentSystem.Add(student);
                return(true);

            case "Show":
                string name = command.Arguments[0];
                writer.PrintOutput(studentSystem.Show(name));
                return(true);

            case "Exit":

                break;
            }
            return(false);
        }