Пример #1
0
        internal ADMInfoEntity GetADMInfoEntity(string aDMInfoId)
        {
            ADMInfo aDMInfo = new ADMInfo();
            ADMInfoEntity aDMInfoEntity = new ADMInfoEntity();

            Criteria criteria = new Criteria("ADMInfoId", aDMInfoId);
            aDMInfo = GetADMInfo(criteria);
            aDMInfoEntity = AllInOne.Legal.DataMapper.BackEnd.NHibernateToDomain.ObjectMapper.CaseSpecificMapper.GetADMInfoEntity(aDMInfo);
            return aDMInfoEntity;
        }
Пример #2
0
        private ADMInfo GetADMInfo(Criteria criteria)
        {
            try
            {
                ADMInfo aDMInfo = new ADMInfo();

                IRepository<ADMInfo> iADMInfoRepository = new RepositoryImpl<ADMInfo>(applicationSession);
                aDMInfo = iADMInfoRepository.Get(criteria.Value);
                return aDMInfo;
            }
            catch (Exception ex)
            {
                Logger.Error("Error encountered at GetADMInfo", ex);
                throw;
            }
        }