Exemple #1
0
        static void Main(string[] args)
        {
            UsuarioViewController usuarioView = new UsuarioViewController();

            usuarioView.Menu();
            int resposta = int.Parse(Console.ReadLine());

            System.Console.WriteLine("");

            switch (resposta)
            {
            case 1:
                usuarioView.Cadastrar();
                break;

            case 2:
                usuarioView.Logar();
                break;

            case 3:

                break;

            default:
                System.Console.WriteLine("Opção inválida");
                break;
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            UsuarioViewController usuarioView = new UsuarioViewController();

            usuarioView.Cadastrar();

            // usuarioView.Logar();

            usuarioView.Listar();
        }