@model MultiFactorAuthenticationModel @using Nop.Core @using Nop.Services.Customers @inject IWorkContext workContext @inject ICustomerService customerService @{ var isRegisterCustomer = await customerService.IsRegisteredAsync(await workContext.GetCurrentCustomerAsync()); Layout = isRegisterCustomer ? "_ColumnsTwo" : "_ColumnsOne"; //title NopHtml.AddTitleParts(T("PageTitle.MultiFactorAuthentication").Text); //page class NopHtml.AppendPageCssClassParts("html-account-page"); } @if (isRegisterCustomer) { @section left { @await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.MultiFactorAuthentication }) } }