Get customer info from view

Thursday, December 26, 2024 9:32:35 PM
  • Posted: Sunday, April 23, 2023 4:51 PM
  • 137
Hi,

I need to get customer email account in _Root.Head. What is the syntax for that in a view ? @T("Account.Fields.Email")
0
  • Posted: Tuesday, April 25, 2023 4:25 PM
  • Team
  • 153
Hi,
ASP.NET Core supports dependency injection into views. The following markup displays the configuration value in a Razor Pages view:
@inject IConfiguration Configuration
@{
    ViewData["Title"] = "Privacy RP";
}

If you need get customer info, you need to inject @WorkContext
0
back to top
Filters