How to access Model Property added to ApplicationUser in Layout file
问题 I am a beginner in ASP.Net MVC web development. And I want to know how can I access extra property added in my ApplicationUser model in layout file? As of now if I have to access a property in the razor file I add @model myModel at top of Razor file and then I am able to access the property by @Model.MyProperty . Suppose I added FirstName property in my Application User like below: public class ApplicationUser : IdentityUser { public string FirstName { get; set; } } Now in my Login Partial I