chore
This commit is contained in:
@@ -57,11 +57,11 @@
|
||||
public long Id { get; set; }
|
||||
|
||||
[SupplyParameterFromForm]
|
||||
StateProvinceModel model { get; set; } = new();
|
||||
Form<StateProvinceModel> editform = null!;
|
||||
AreaModel model { get; set; } = new();
|
||||
Form<AreaModel> editform = null!;
|
||||
List<KeyValue> languageList = new();
|
||||
Country country = new();
|
||||
StateProvinceLocalizedModel stateProvince = new();
|
||||
AreaLocalizedModel stateProvince = new();
|
||||
bool pageLoading = false;
|
||||
bool saving = false;
|
||||
|
||||
@@ -125,8 +125,8 @@
|
||||
async void LoadData()
|
||||
{
|
||||
pageLoading = true;
|
||||
var url = $"/api/stateprovince/detail?id={Id}";
|
||||
var apiResult = await HttpService.Get<ApiResult<StateProvinceLocalizedModel>>(url);
|
||||
var url = $"/api/area/detail?id={Id}";
|
||||
var apiResult = await HttpService.Get<ApiResult<AreaLocalizedModel>>(url);
|
||||
if (apiResult.Success)
|
||||
{
|
||||
if (apiResult.Data == null)
|
||||
@@ -136,7 +136,7 @@
|
||||
else
|
||||
{
|
||||
stateProvince = apiResult.Data;
|
||||
model = apiResult.Data.Adapt<StateProvinceModel>();
|
||||
model = apiResult.Data.Adapt<AreaModel>();
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -153,7 +153,7 @@
|
||||
if (editform.Validate())
|
||||
{
|
||||
saving = true;
|
||||
var url = $"api/stateprovince/save";
|
||||
var url = $"api/area/save";
|
||||
var result = new ApiResult<string>();
|
||||
result = await HttpService.Post<ApiResult<string>>(url, model);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user