protected void Button1_Click(object sender, EventArgs e)
        {
            var nuevaPizza = PizzasServicio.Factory(TextBoxTitulo, TextBoxPrecio, TextBoxImagen);

            PizzasDal.Insertar(nuevaPizza);
            TextBoxTitulo.Text = "";
            TextBoxPrecio.Text = "";
            TextBoxImagen.Text = "";
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DropDownListPizza.DataSource = PizzasDal.ListaPizzasOrdenes();
         DropDownListPizza.DataBind();
         DropDownListClientes.DataSource = ClientesDal.ListaClientesOrdenes();
         DropDownListClientes.DataBind();
     }
     else
     {
         Panel1.DataBind();
     }
 }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     GridView1.DataSource = PizzasDal.ListarPizzas();
     GridView1.DataBind();
 }
Esempio n. 4
0
 public List <PIZZAS> Listar()
 {
     return(PizzasDal.ListarPizzas());
 }