コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pActivationCode"></param>
        /// <returns></returns>
        public static HealthInstitutionBE ValidateActivationCode(string pActivationCode)
        {
            ValidateActivationCodeReq req = new ValidateActivationCodeReq();

            req.BusinessData.Code = pActivationCode;
            //req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            ValidateActivationCodeRes res = req.ExecuteService <ValidateActivationCodeReq, ValidateActivationCodeRes>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData);
        }
コード例 #2
0
ファイル: Controller.cs プロジェクト: spzenk/sfdocsamples
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pActivationCode"></param>
        /// <returns></returns>
        public static HealthInstitutionBE ValidateActivationCode(string pActivationCode)
        {
            ValidateActivationCodeReq req = new ValidateActivationCodeReq();
            req.BusinessData.Code = pActivationCode;
            //req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();

            ValidateActivationCodeRes res = req.ExecuteService<ValidateActivationCodeReq, ValidateActivationCodeRes>(req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

            return res.BusinessData;
        }