ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Areas/Admin/Views/Shared/Components/StoreScopeConfiguration/Default.cshtml
@model StoreScopeConfigurationModel
@inject IWebHelper webHelper
@{
    var rawUrl = webHelper.GetRawUrl(Context.Request);
    var stores = Model.Stores.Select(store => new SelectListItem
    {
        Text = store.Name,
        Value = Url.Action("ChangeStoreScopeConfiguration", "Setting", new { storeid = store.Id, returnurl = rawUrl }),
        Selected = store.Id.Equals(Model.StoreId)
    })
    .ToList();

    stores.Insert(0, new SelectListItem
    {
        Text = T("Admin.Configuration.Settings.StoreScope.AllStores").Text,
        Value = Url.Action("ChangeStoreScopeConfiguration", "Setting", new { storeid = 0, returnurl = rawUrl}),
        Selected = 0.Equals(Model.StoreId)
    });
}
<div class="form-group">
    <div class="col-md-12">
        <label class="control-label" style="float:left;margin-right:10px;">@T("Admin.Configuration.Settings.StoreScope")</label>
        @Html.DropDownList("store-scope-configuration", stores, new { onchange = "setLocation(this.value);", style = "width: auto;min-width: 300px;", @class = "form-control" })
        @if (!String.IsNullOrEmpty(Model.StoreId))
        {
            <label class="mt-checkbox control control-checkbox">
                <input type="checkbox" onclick="checkAllOverriddenStoreValue(this)" style="margin-top: 4px;">
                <b>@T("Admin.Configuration.Settings.StoreScope.CheckAll")</b> @T("Admin.Configuration.Settings.StoreScope.CheckAll.Hint")
                 <div class="control__indicator"></div>
            </label>
        }
    </div>
</div>