AdministrationClientDeleteDistrict Method |
Delete the District from the submitted District RSN.
The District RSN can be fetched from the Web Service Method: SelectDistrict.
public Result DeleteDistrict( ManagementGroupRequestOfguid request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfguid(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin request.Value = new Guid("81e9abb2-562d-485d-9924-e8664e961cf1");; //Required - RSN of district AdministrationService.Result result = svc.DeleteDistrict(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }