Get customer info from view

Monday, November 11, 2024 1:36:55 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
  • 152
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