示例#1
0
        public IActionResult MainScreenView(string userId)
        {
            var model = _classesServices.GetClassInfo(Int32.Parse(userId));

            TempData["UID"] = Int32.Parse(userId);
            return(View(model));
        }
示例#2
0
        public IActionResult ClassesView()
        {
            var userId = (int)TempData.Peek("UID");
            var model  = _classesServices.GetClassInfo(userId);

            return(View(model));
        }