예제 #1
0
        public IActionResult _Header()
        {
            var user  = HttpContext.Session.GetString("UserId");
            var name  = _Services.GetUserNameById(int.Parse(user));
            var model = new CurrentUserViewModel
            {
                Name          = name,
                UserAccess    = _Services.UserAccess(int.Parse(user)),
                Notifications = _Services.Notifications(int.Parse(user)),
            };

            return(PartialView("_Header", model));
        }