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;
        }
        internal ADMInfoEntity GetADMInfoEntityBySGID(string SGID)
        {
            ADMInfoEntity aDMInfoEntity = new ADMInfoEntity();

            IRepository<ADMInfo> aDMInfoRepository = new RepositoryImpl<ADMInfo>(applicationSession);

            DetachedCriteria detachedCriteria = DetachedCriteria.For(typeof(ADMInfo))
                                                               .Add(Expression.Eq("SubmissionGroupId", SGID));
            List<ADMInfo> listADMInfo = aDMInfoRepository.GetAll(detachedCriteria) as List<ADMInfo>;
            if (listADMInfo != null && listADMInfo.Count > 0)
            {
                foreach (ADMInfo adMInfo in listADMInfo)
                {
                    aDMInfoEntity = AllInOne.Legal.DataMapper.BackEnd.NHibernateToDomain.ObjectMapper.CaseSpecificMapper.GetADMInfoEntity(adMInfo);
                }
            }
            else
                aDMInfoEntity = null;
            return aDMInfoEntity;
        }
 internal void SaveOrUpdateADMInfoEntity(ADMInfoEntity aDMInfoEntity)
 {
     IRepository<ADMInfo> iADMInfoRepository = new RepositoryImpl<ADMInfo>(applicationSession);
     iADMInfoRepository.SaveOrUpdate(AllInOne.Legal.DataMapper.BackEnd.DomainToNHibernate.ObjectMapper.CaseSpecificMapper.GetAdmInfo(aDMInfoEntity));
 }