Ejemplo n.º 1
0
        public ActionResult SubList()
        {
            var dal = new DAL.RegisterSubDAL();
            var Sub = dal.SubList();

            return(View(Sub));
        }
Ejemplo n.º 2
0
        public ActionResult Subject()
        {
            var    model = (Entity.ProfileTeacher)Session["Teacher"];
            string id    = model.Teacher_id;
            var    dal   = new DAL.RegisterSubDAL();
            var    Sub   = dal.SubList();

            Sub = Sub.Where(a => a.Teacher_id == id).ToList();
            return(View(Sub));
        }