public void CatalogoBarcos(string idOwner) { ddlBarco.Items.Clear(); List <VOBarco> barcos = BLLBarco.ConsultarBarcosPorOwner(idOwner, true);//solo bascos disponibles, por eso el true foreach (VOBarco barco in barcos) { ddlBarco.Items.Add(new ListItem(barco.Matricula, barco.IdBarco.ToString())); } }
public void CargarGrid(string owner) { gvBarcos.DataSource = BLLBarco.ConsultarBarcosPorOwner(owner, true); gvBarcos.DataBind(); }