Exemple #1
0
        public ActionResult ListaBase(FormCollection form)
        {
            //string inicio = "", string fin = "", string resolucion = ""
            var inicio     = form["txtDesde"];
            var fin        = form["txtHasta"];
            var resolucion = form["txtResolucion"];

            if (inicio == null && fin == null && resolucion == null)
            {
                ViewBag.Lista = GestionPedagogica.ListarBase();
                return(PartialView());
            }
            else if (inicio == "" && fin == "" && resolucion == "")
            {
                ViewBag.Lista = GestionPedagogica.ListarBase();
                return(PartialView());
            }
            else
            {
                ViewBag.Lista = GestionPedagogica.BuscarListaBase(inicio, fin, resolucion);
                return(PartialView());
            }
        }