Beispiel #1
0
        /// <summary>
        /// Busca HealthInstitution por parametros
        /// </summary>
        /// <returns></returns>
        public static HealthInstitutionList RetriveHealthInstitutionList(string text)
        {
            RetriveHealthInstitutionReq req = new RetriveHealthInstitutionReq();

            req.BusinessData.TextToSearch = text;
            if (frmBase_TabForm.IndentityUserInfo != null)
            {
                req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            }
            RetriveHealthInstitutionRes res = req.ExecuteService <RetriveHealthInstitutionReq, RetriveHealthInstitutionRes>(req);


            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }
            return(res.BusinessData);
        }
Beispiel #2
0
        /// <summary>
        /// Busca HealthInstitution por parametros
        /// </summary>
        /// <returns></returns>
        public static HealthInstitutionList RetriveHealthInstitutionList(string text)
        {
            RetriveHealthInstitutionReq req = new RetriveHealthInstitutionReq();

            req.BusinessData.TextToSearch = text;
            if (frmBase_TabForm.IndentityUserInfo!=null)
                req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString();
            RetriveHealthInstitutionRes res = req.ExecuteService<RetriveHealthInstitutionReq, RetriveHealthInstitutionRes>(req);


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