@model TaxTypeSelectorModel @using SmartStore.Core; @using SmartStore.Core.Domain.Tax; @using SmartStore.Core.Infrastructure; @using SmartStore.Core.Infrastructure.DependencyManagement; @using SmartStore.Web.Models.Common; @if (Model.Enabled) { var webHelper = EngineContext.Current.Resolve(); var taxTypes = new List(); taxTypes.Add(new SelectListItem() { Text = T("Tax.Inclusive").Text, Value = webHelper.ModifyQueryString(Url.RouteUrl("ChangeTaxType", new { customertaxtype = ((int)TaxDisplayType.IncludingTax) }), "returnurl=" + HttpUtility.UrlEncode(HttpContext.Current.Request.RawUrl), null), Selected = Model.CurrentTaxType == TaxDisplayType.IncludingTax }); taxTypes.Add(new SelectListItem() { Text = T("Tax.Exclusive").Text, Value = webHelper.ModifyQueryString(Url.RouteUrl("ChangeTaxType", new { customertaxtype = ((int)TaxDisplayType.ExcludingTax) }), "returnurl=" + HttpUtility.UrlEncode(HttpContext.Current.Request.RawUrl), null), Selected = Model.CurrentTaxType == TaxDisplayType.ExcludingTax }); @Html.DropDownList("customerTaxType", taxTypes, new { onchange = "setLocation(this.value);" }) }