Get customer info from view

Tuesday, June 6, 2023 6:09:23 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
  • 135
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