how get the user show mvc controller core 3.1

Code Example - how get the user show mvc controller core 3.1

                
                        string userName = _httpContextAccessor.HttpContext.User.Identity.Name;