コード例 #1
0
        public ActionResult ModificarMateria()
        {
            if (Session["Admin"] != null)
            {
                ViewBag.Lista = r.ListaMateria(null);

                return(View());
            }
            return(RedirectToAction("Index", "Home"));
        }
コード例 #2
0
        // GET: Alumno
        public ActionResult Index()
        {
            if (Session["Alumno"] != null)
            {
                Alumno a = (Alumno)Session["Alumno"];

                return(View(r.ListaMateria(a.id)));
            }
            return(RedirectToAction("Index", "Home"));
        }