public IActionResult Index() { string id = HttpContext.Session.GetString("user"); ViewData["Userno"] = id; ViewBag.Grade = gradeRepository.SelectByUserno(id); ViewBag.Papers = testpapersRepository.SelectAll(); return(View()); }
public IActionResult Index() { string id = HttpContext.Session.GetString("user"); ViewData["Userno"] = id; ViewBag.Grade = gradeRepository.SelectByUserno(id); ViewBag.Papers = testpapersRepository.SelectAll(); return(View()); }