public override void ExecuteCmdlet()
        {
            IEnumerable <HardwareProfile> results = null;
            var hardwareProfileOperations         = new HardwareProfileOperations(this.WebClientFactory);

            if (this.ParameterSetName == WAPackCmdletParameterSets.Empty)
            {
                results = hardwareProfileOperations.Read();
            }
            else if (this.ParameterSetName == WAPackCmdletParameterSets.FromId)
            {
                HardwareProfile hardwareProfile = null;
                hardwareProfile = hardwareProfileOperations.Read(ID);
                results         = new List <HardwareProfile>()
                {
                    hardwareProfile
                };
            }
            else if (this.ParameterSetName == WAPackCmdletParameterSets.FromName)
            {
                results = hardwareProfileOperations.Read(new Dictionary <string, string>()
                {
                    { "Name", Name }
                });
            }

            this.GenerateCmdletOutput(results);
        }
        public override void ExecuteCmdlet()
        {
            IEnumerable<HardwareProfile> results = null;
            var hardwareProfileOperations = new HardwareProfileOperations(this.WebClientFactory);

            if (this.ParameterSetName == WAPackCmdletParameterSets.Empty)
            {
                results = hardwareProfileOperations.Read();
            }
            else if (this.ParameterSetName == WAPackCmdletParameterSets.FromId)
            {
                HardwareProfile hardwareProfile = null;
                hardwareProfile = hardwareProfileOperations.Read(ID);
                results = new List<HardwareProfile>() { hardwareProfile };
            }
            else if (this.ParameterSetName == WAPackCmdletParameterSets.FromName)
            {
                results = hardwareProfileOperations.Read(new Dictionary<string, string>()
                {
                    {"Name", Name}
                });
            }

            this.GenerateCmdletOutput(results);
        }