File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/Umbraco.Commerce.Checkout/Views/UmbracoCommerceCheckout Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
- @using Newtonsoft . Json ;
1
+ @using System . Text . Json
2
2
@inherits UmbracoViewPage
3
3
@{
4
4
Layout = " UmbracoCommerceCheckoutLayout.cshtml" ;
72
72
@foreach ( var country in countries )
73
73
{
74
74
<option value =" @(country.Id)" @Html.Raw(currentOrder.PaymentInfo.CountryId == country.Id ? " selected=\" selected\ " " : " " )
75
- data-regions =" @(JsonConvert.SerializeObject ((await UmbracoCommerceApi.Instance.GetRegionsAsync(country.StoreId, country.Id)).Select(x => new
76
- {
77
- id = x.Id,
78
- name = x.Name,
79
- })))" >
75
+ data-regions =" @(JsonSerializer.Serialize ((await UmbracoCommerceApi.Instance.GetRegionsAsync(country.StoreId, country.Id)).Select(x => new
76
+ {
77
+ id = x.Id,
78
+ name = x.Name,
79
+ })))" >
80
80
@( country .Name )
81
81
</option >
82
82
}
119
119
@foreach (var country in countries )
120
120
{
121
121
< option value = " @(country.Id)" @Html .Raw (currentOrder .ShippingInfo .CountryId == country .Id ? " selected=\" selected\" " : " " )
122
- data - regions = " @(JsonConvert.SerializeObject ((await UmbracoCommerceApi.Instance.GetRegionsAsync(country.StoreId, country.Id)).Select(x => new
123
- {
124
- id = x .Id ,
125
- name = x .Name ,
126
- })))" >
122
+ data - regions = " @(JsonSerializer.Serialize ((await UmbracoCommerceApi.Instance.GetRegionsAsync(country.StoreId, country.Id)).Select(x => new
123
+ {
124
+ id = x .Id ,
125
+ name = x .Name ,
126
+ })))" >
127
127
@(country .Name )
128
128
< / option >
129
129
}
You can’t perform that action at this time.
0 commit comments