ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Views/Shared/Components/StoreThemeSelector/Default.cshtml
@model StoreThemeSelectorModel
@inject IWebHelper webHelper
@if (Model.AvailableStoreThemes.Count > 1)
{
    var themes = Model.AvailableStoreThemes.Select(x => new SelectListItem
    {
        Text = x.Title,
        Value = Url.Action("SetStoreTheme", "Common", new { themename = x.Name, returnUrl = webHelper.GetRawUrl(Context.Request)}),
        Selected = x.Name.Equals(Model.CurrentStoreTheme.Name, StringComparison.OrdinalIgnoreCase)
    });
    <div class="theme-selector col-12 col-md-4">
        @Html.DropDownList("store-theme", themes, new {@class="custom-select form-control", onchange = "setLocation(this.value);" })
    </div>
}