public async Task <ViewResultBase> Edit(string parentId, string districtId = null) { var district = new SystemDistrict(); if (!string.IsNullOrEmpty(districtId)) { district = await _districtLogic.GetByIdAsync(districtId); } else { district.ParentId = parentId; } return(View(district)); }
public async Task <JsonResult> SaveDistrict(SystemDistrict district) { return(Json(await _districtLogic.SaveDistrict(district))); }