protected void confirmar_Click(object sender, EventArgs e) { try { // Pasar fecha actual y idPedido LogicaPedido.Confirmar((int)Session["IdVenta"], DateTime.Now); CargarPedidosPendientes(); lbError.Text = "Pedido entregado.."; } catch (Exception) { throw; } }