コード例 #1
0
        //Task<System.Security.Claims.ClaimsPrincipal> GetCurrentUserAsync() => _otherManager.GetUserIdAsync(HttpContext.User);

        public async Task <IActionResult> Index(string message)
        {
            ViewBag.Message = message;
            //var z = _otherManager.GetUserIdAsync(HttpContext.User);
            var x = await _userManager.FindByNameAsync(User.Identity.Name);

            var vm = Mapper.Map <FacultyProfileViewModel>(x);

            vm.Disclosures  = _repository.GetUserDisclosures(x);
            vm.EventFaculty = _repository.GetUserEvents(x);
            return(View(vm));
        }