Example #1
0
        // GET: Preguntas
        // GET: Categorias
        public ActionResult Index()
        {
            PreguntasBLL    oBLL      = new PreguntasBLL();
            List <Pregunta> preguntas = oBLL.RetrieveAll();

            return(View(preguntas));
        }
Example #2
0
        public ActionResult IndexNotificacion(int id)
        {
            PreguntasBLL    oBLL      = new PreguntasBLL();
            List <Pregunta> preguntas = oBLL.RetrieveAll();

            ViewBag.notificacion = id;
            return(View(preguntas));
        }
Example #3
0
        public ActionResult Create()
        {
            TemasBLL    temasBLL = new TemasBLL();
            List <Tema> temas    = temasBLL.RetrieveAll();

            ViewBag.TemaID = new SelectList(temas, "TemaID", "NombreTema");
            PreguntasBLL    preguntaBLL = new PreguntasBLL();
            List <Pregunta> preguntas   = preguntaBLL.RetrieveAll();

            ViewBag.PreguntaID = new SelectList(preguntas, "PreguntaID", "TituloPregunta");
            return(View());
        }
Example #4
0
        public ActionResult Create()
        {
            UsuariosBLL    obBLL    = new UsuariosBLL();
            List <Usuario> usuarios = obBLL.RetrieveAll();

            ViewBag.UsuarioID = new SelectList(usuarios, "UsuarioID", "UserName");
            PreguntasBLL    preguntaBLL = new PreguntasBLL();
            List <Pregunta> preguntas   = preguntaBLL.RetrieveAll();

            ViewBag.PreguntaID = new SelectList(preguntas, "PreguntaID", "TituloPregunta");
            return(View());
        }