public override void ExecuteCmdlet() { PartnerId = PartnerId ?? string.Empty; try { var response = new PSManagementPartner(AceProvisioningManagementPartnerApiClient.Partner.Get(PartnerId)); WriteObject(response); } catch (Exception e) { LogException(e); } }
public override void ExecuteCmdlet() { if (ShouldProcess(string.Format(PartnerResources.UpdateManagementParnterTarget, PartnerId), string.Format(PartnerResources.UpdateManagementParnterAction, PartnerId))) { try { var response = new PSManagementPartner(AceProvisioningManagementPartnerApiClient.Partner .Update(PartnerId)); WriteObject(response); } catch (Exception ex) { LogException(ex); } } }