Asp.Net Core Identity 怎么获取当前登录的用户信息?

   public virtual async Task<IActionResult> Index()
        {
            var res = await _userManager.GetUserAsync(HttpContext.User);
             return View();
        }    

 

posted @ 2017-04-23 17:15  码农丁  阅读(5423)  评论(0编辑  收藏  举报