/// <summary> /// Retrorna HealthInstitution_ProfesionalBE HealthInstitution por parametros /// </summary> /// <returns></returns> public static AuthHealthInstitutionRes AuthHealthInstitution(Guid pHealthInstitutionId, Int32?pProfesionalId, Guid?userId) { AuthHealthInstitutionReq req = new AuthHealthInstitutionReq(); req.BusinessData.HealthInstId = pHealthInstitutionId; req.BusinessData.ProfesionalId = pProfesionalId; req.BusinessData.UserId = userId; if (frmBase_TabForm.IndentityUserInfo != null) { req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); } AuthHealthInstitutionRes res = req.ExecuteService <AuthHealthInstitutionReq, AuthHealthInstitutionRes>(req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } return(res); }
/// <summary> /// Retrorna HealthInstitution_ProfesionalBE HealthInstitution por parametros /// </summary> /// <returns></returns> public static AuthHealthInstitutionRes AuthHealthInstitution(Guid pHealthInstitutionId, Int32? pProfesionalId,Guid? userId) { AuthHealthInstitutionReq req = new AuthHealthInstitutionReq(); req.BusinessData.HealthInstId = pHealthInstitutionId; req.BusinessData.ProfesionalId = pProfesionalId; req.BusinessData.UserId = userId; if (frmBase_TabForm.IndentityUserInfo != null) req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); AuthHealthInstitutionRes res = req.ExecuteService<AuthHealthInstitutionReq, AuthHealthInstitutionRes>(req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); return res; }