예제 #1
0
 public List <logica.Models.clsDeportes> getDeportes()
 {
     try
     {
         logica.BL.clsEstadios obclsEstadios = new logica.BL.clsEstadios();
         return(obclsEstadios.getDeportes());
     }
     catch (Exception ew)
     {
         throw ew;
     }
 }
예제 #2
0
 public string insertEstadios(logica.Models.clsEstadios obclsEstadiosModels)
 {
     try
     {
         logica.BL.clsEstadios obclsEstadios = new logica.BL.clsEstadios();
         return(obclsEstadios.insertEstadios(obclsEstadiosModels));
     }
     catch (Exception ew)
     {
         throw ew;
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         getEstadios();
         logica.BL.clsEstadios                 obclsEstadios         = new logica.BL.clsEstadios();
         Controllers.EstadiosControllers       obEstadiosControllers = new Controllers.EstadiosControllers();
         List <logica.Models.clsDepartamentos> consultaDepartamentos = obEstadiosControllers.getDepartamentos();
         List <logica.Models.clsDeportes>      consultaDeportes      = obEstadiosControllers.getDeportes();
         obclsEstadios.CargarControlDepartamento(ref ddlDepartamento, consultaDepartamentos, "inCodigo", "stNombre", "-1", "<<Todos>>");
         obclsEstadios.CargarControlDeportes(ref ddlDeportes, consultaDeportes, "lgCodigo", "stNombre", "-1", "<<Todos>>");
     }
 }