public IActionResult MainScreenView(string userId) { var model = _classesServices.GetClassInfo(Int32.Parse(userId)); TempData["UID"] = Int32.Parse(userId); return(View(model)); }
public IActionResult ClassesView() { var userId = (int)TempData.Peek("UID"); var model = _classesServices.GetClassInfo(userId); return(View(model)); }