I’m using MVC 6 and would like to be able to access a particular namespace globally from all of my Razor views. In MVC 5 this was fairly simple; I’d just add the following code
I'm on beta 7 and I had to use
@using System.Security.Principal @using System.Security.Claims @Context.User.GetUserId()