// GET: Matricula public ActionResult Index() { ViewBag.alumno = new SelectList(new List <SelectListItem> { new SelectListItem() { Text = "seleccione", Value = "0" } }, "Value", "Text"); var grados = new List <SelectListItem>() { new SelectListItem() { Text = "Grado", Value = "0" } }; var seccion = new List <SelectListItem>() { new SelectListItem() { Text = "Seccion", Value = "0" } }; ViewBag.anios = new SelectList(_anioAcademicoService.GetAnioAcademicos(""), "AnioAcademicoId", "Anio"); ViewBag.grado = new SelectList(grados, "Value", "Text"); ViewBag.seccion = new SelectList(seccion, "Value", "Text"); ViewBag.nivel = new SelectList(_nivelService.GetNiveles(), " NivelId ", "Nombre"); var fecha = DateTime.Now.Year.ToString(); var lista = _matriculaService.GetMatriculas("").Where(d => d.AnioAcademico.Anio.Equals(fecha)); return(View(lista)); }
// GET: AnioAcademico public ActionResult Index(string criterio) { var lista = _anioAcademicoService.GetAnioAcademicos(criterio); return(View(lista)); }