Webiant Logo Webiant Logo
  1. No results found.

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

Default.cshtml

@model StoreThemeSelectorModel

@inject Nop.Core.IWebHelper webHelper

@if (Model.AvailableStoreThemes.Count > 1)
{
    var returnUrl = webHelper.GetRawUrl(Context.Request);
    var themes = await Model.AvailableStoreThemes.SelectAwait(async x => new SelectListItem
    {
        Text = x.Title,
        Value = Url.RouteUrl("SetStoreTheme", new { themename = x.Name, returnUrl }, webHelper.GetCurrentRequestProtocol()),
        Selected = x.Name.Equals(Model.CurrentStoreTheme.Name, StringComparison.InvariantCultureIgnoreCase)
    }).ToListAsync();
    
}