public ActionResult ModificarMateria() { if (Session["Admin"] != null) { ViewBag.Lista = r.ListaMateria(null); return(View()); } return(RedirectToAction("Index", "Home")); }
// GET: Alumno public ActionResult Index() { if (Session["Alumno"] != null) { Alumno a = (Alumno)Session["Alumno"]; return(View(r.ListaMateria(a.id))); } return(RedirectToAction("Index", "Home")); }