Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Default.cshtml

@model CurrencySelectorModel

@inject Nop.Core.IWebHelper webHelper

@if (Model.AvailableCurrencies.Count > 1)
{
    
@{ var returnUrl = webHelper.GetRawUrl(Context.Request); var currencies = await Model.AvailableCurrencies.SelectAwait(async x => new SelectListItem { Text = x.Name, Value = Url.RouteUrl("ChangeCurrency", new { customercurrency = x.Id, returnUrl }, webHelper.GetCurrentRequestProtocol()), Selected = x.Id.Equals(Model.CurrentCurrencyId) }).ToListAsync(); }
}