Beispiel #1
0
        public override ActionResult Index()
        {
            var homeSvc = new HomeService();
            var userId = int.Parse(Session["CurrentUserId"].ToString());
            var currentUser = homeSvc.GetCurrentUser(userId);

            Session["CurrentUser"] = currentUser;
            ViewBag.CurrentUser = currentUser;
            return View();
        }