Example #1
0
        public bool defineAlimento(String valor)
        {
            ProgramsSchema programa = programsController.buscarPrograma(valor);

            if (programa.getName() != "default")
            {
                ResponseSchema response = microWaveController.definePrograma(programa);

                Console.WriteLine(response.getMessage());

                return(response.getError());
            }

            Console.WriteLine(Constants.messageErrorGetProgram);
            Console.WriteLine("");
            Console.WriteLine(programsController.buscarNomeProgramas());
            Console.WriteLine("");
            return(true);
        }