Example #1
0
 public TipoAnunciosController()
 {
     nombreAnunciosDAO     = new NombreAnunciosDAO(this);
     tipoAnunciosDAO       = new TipoAnunciosDAO(this);
     ViewBag.Periodos      = (new DropDownDAO()).getPeriodosdd(null);
     ViewBag.NombreAnuncio = (new DropDownDAO()).getNombreAnunciosdd(null);
     perfilValidator       = new PerfilValidator(this);
 }
Example #2
0
 public AnunciosController()
 {
     anunciosDAO             = new AnunciosDAO(this);
     tipoAnunciosDAO         = new TipoAnunciosDAO(this);
     ViewBag.listaDuraciones = (new DropDownDAO()).getPeriodos();
     ViewBag.nombresAnuncios = (new DropDownDAO()).getNombresAnuncios();
     categoriasDAO           = new CategoriasDAO(this);
     ViewBag.Categorias      = (new DropDownDAO()).getCategoriasdd(null);
     ViewBag.Localidades     = (new DropDownDAO()).getLocalidadesdd(null);
     notificacionDAO         = new NotificacionesDAO(this);
     ViewBag.busq            = "Buscar...";
 }