Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

user (current login user) in viewcomponent

public async Task<IViewComponentResult> InvokeAsync()
{
     _userManager.GetUserId(Request.HttpContext.User);

    return View();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #user #login #viewcomponent
ADD COMMENT
Topic
Name
8+8 =