public PowerShellResults ProcessUpload(UploadFileContext context, WebServiceParameters param)
        {
            param.FaultIfNull();
            UploadUMParameter uploadUMParameter = (UploadUMParameter)param;

            uploadUMParameter.PromptFileStream = context.FileStream;
            uploadUMParameter.PromptFileName   = Path.GetFileName(context.FileName);
            if (uploadUMParameter.UMAutoAttendant == null && uploadUMParameter.UMDialPlan == null)
            {
                uploadUMParameter.UMAutoAttendant.FaultIfNull();
            }
            return(this.ImportObject(uploadUMParameter));
        }
        private PowerShellResults ImportObject(UploadUMParameter parameters)
        {
            Identity translationIdentity = (parameters.UMAutoAttendant != null) ? parameters.UMAutoAttendant : parameters.UMDialPlan;

            return(base.Invoke(new PSCommand().AddCommand("Import-UMPrompt"), translationIdentity, parameters));
        }