LoyaltyPartnerClientDeletePartnerCategory Method |
Delete a Partner Category from the submitted Partner Category RSN.
The Partner Category RSN can be fetched from the Web Service Method: SelectPartnerCategoryList
public Result DeletePartnerCategory( ManagementGroupRequestOfguid request )
using (var svc = new LoyaltyService.LoyaltyPartnerClient()) { var request = new LoyaltyService.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("e8a84ddd-3b98-4096-bfe6-987d02f869b3");;//Required - RSN of partner category LoyaltyService.Result result = svc.DeletePartnerCategory(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }