/// <summary>
        /// Deletes the commerce profile.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="profileName">Name of the profile.</param>
        /// <returns>The service provider result.</returns>
        private ServiceProviderResult DeleteCommerceProfile(string id, string profileName)
        {
            ServiceProviderResult result = new ServiceProviderResult {
                Success = true
            };

            try
            {
                var deleteArgs = new DeleteProfileArgs();
                deleteArgs.InputParameters.Name = profileName;
                deleteArgs.InputParameters.Id   = id;

                CorePipeline.Run(CommerceConstants.PipelineNames.DeleteProfile, deleteArgs);
                result.Success = deleteArgs.OutputParameters.Success;
            }
            catch (Exception e)
            {
                result = new ServiceProviderResult {
                    Success = false
                };
                result.SystemMessages.Add(new SystemMessage {
                    Message = e.Message
                });
            }

            return(result);
        }
        /// <summary>
        /// Deletes the commerce profile.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="profileName">Name of the profile.</param>
        /// <returns>The service provider result.</returns>
        private ServiceProviderResult DeleteCommerceProfile(string id, string profileName)
        {
            ServiceProviderResult result = new ServiceProviderResult { Success = true };

            try
            {
                var deleteArgs = new DeleteProfileArgs();
                deleteArgs.InputParameters.Name = profileName;
                deleteArgs.InputParameters.Id = id;

                CorePipeline.Run(CommerceConstants.PipelineNames.DeleteProfile, deleteArgs);
                result.Success = deleteArgs.OutputParameters.Success;
            }
            catch (Exception e)
            {
                result = new ServiceProviderResult { Success = false };
                result.SystemMessages.Add(new SystemMessage { Message = e.Message });
            }

            return result;
        }