Get customer info from view

Thursday, March 28, 2024 10:08:22 AM
  • 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
  • 150
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