protected void Button1_Click(object sender, EventArgs e) { var nuevaPizza = PizzasServicio.Factory(TextBoxTitulo, TextBoxPrecio, TextBoxImagen); PizzasDal.Insertar(nuevaPizza); TextBoxTitulo.Text = ""; TextBoxPrecio.Text = ""; TextBoxImagen.Text = ""; }
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(); } }
protected void Page_Load(object sender, EventArgs e) { GridView1.DataSource = PizzasDal.ListarPizzas(); GridView1.DataBind(); }
public List <PIZZAS> Listar() { return(PizzasDal.ListarPizzas()); }