using System.Security.Claims; var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); Note that this extension method only works for Users inside controllers, not view components, as the view component User is of IPrincipal.
Tag: user
How to hide Youtube chat windows permanently
The easiest way to do that is using AdBlock. 1. Open your web browser and go to the Adblock Settings as shown. 2. Click on the Customize option in the left pane. 3. Here in the Customize AdBlock section, locate and click the Edit button next to Manually edit your filters. 4. Then, add the following links and click on the Save button. youtube.com###chat