Example #1
0
        public IActionResult Index()
        {
            string id = HttpContext.Session.GetString("user");

            ViewData["Userno"] = id;
            ViewBag.Grade      = gradeRepository.SelectByUserno(id);
            ViewBag.Papers     = testpapersRepository.SelectAll();
            return(View());
        }