protected override void ProcessRecord() { base.ProcessRecord(); if (CmdSite == null || CmdPortal == null) { return; } ; WriteVerbose(string.Format("restore-user on {0} portal {1}", CmdSite.Url, CmdPortal.PortalId)); var response = RecyclebinCommands.RestoreUser(CmdSite, CmdPortal.PortalId, UserId); WriteObject(response); }
protected override void ProcessRecord() { base.ProcessRecord(); if (CmdSite == null || CmdPortal == null) { return; } ; WriteVerbose(string.Format("purge-module on {0} portal {1}", CmdSite.Url, CmdPortal.PortalId)); var response = RecyclebinCommands.PurgeModule(CmdSite, CmdPortal.PortalId, ModuleId, PageId); WriteObject(response); }