public static HealthInstitutionBE GetHealthInstitutionById(Guid pHealthInstitutionId) { GetHealthInstitutionByIdReq req = new GetHealthInstitutionByIdReq(); req.BusinessData.HealthInstId = pHealthInstitutionId; if (frmBase_TabForm.IndentityUserInfo != null) { req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); } GetHealthInstitutionByIdRes res = req.ExecuteService <GetHealthInstitutionByIdReq, GetHealthInstitutionByIdRes>(req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } return(res.BusinessData); }
public static HealthInstitutionBE GetHealthInstitutionById(Guid pHealthInstitutionId) { GetHealthInstitutionByIdReq req = new GetHealthInstitutionByIdReq(); req.BusinessData.HealthInstId = pHealthInstitutionId; if (frmBase_TabForm.IndentityUserInfo != null) req.ContextInformation.UserId = frmBase_TabForm.IndentityUserInfo.ProviderId.ToString(); GetHealthInstitutionByIdRes res = req.ExecuteService<GetHealthInstitutionByIdReq, GetHealthInstitutionByIdRes>(req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); return res.BusinessData; }