Ejemplo n.º 1
0
        public void Add_Prato(string nome, int valor, string tipo, string descricao)
        {
            DAO dao = new DAO();

            if (tipo == "Comida")
            {
                this.tipo = 1;
            }
            else if (tipo == "Bebida")
            {
                this.tipo = 2;
            }
            else if (tipo == "Sobremesa")
            {
                this.tipo = 3;
            }

            dao.Add_Prato(nome, valor, this.tipo, descricao);
        }