Пример #1
0
 public int getLookup(ref LookupEntity objLookupEntity)
 {
     try
     {
         List<Mugurtham.Core.Sangam.SangamCoreEntity> objSangamCoreEntityList = new List<Sangam.SangamCoreEntity>();
         List<Mugurtham.Core.Role.RoleCoreEntity> objRoleCoreEntityList = new List<Role.RoleCoreEntity>();
         Mugurtham.Core.Sangam.SangamCore objSangamCore = new Sangam.SangamCore();
         using (objSangamCore as IDisposable)
             objSangamCore.GetAll(ref objSangamCoreEntityList);
         objSangamCore = null;
         Mugurtham.Core.Role.RoleCore objRoleCore = new Role.RoleCore();
         using (objRoleCore as IDisposable)
             objRoleCore.GetAll(ref objRoleCoreEntityList);
         objRoleCore = null;
         objLookupEntity.RoleCoreEntity = objRoleCoreEntityList;
         objLookupEntity.SangamCoreEntity = objSangamCoreEntityList;
     }
     catch (Exception objEx)
     {
         Helpers.LogExceptionInFlatFile(objEx);
     }
     return 0;
 }
Пример #2
0
 public int getLookup(ref LookupEntity objLookupEntity)
 {
     try
     {
         List <Mugurtham.Core.Sangam.SangamCoreEntity> objSangamCoreEntityList = new List <Sangam.SangamCoreEntity>();
         List <Mugurtham.Core.Role.RoleCoreEntity>     objRoleCoreEntityList   = new List <Role.RoleCoreEntity>();
         Mugurtham.Core.Sangam.SangamCore objSangamCore = new Sangam.SangamCore(_objLoggedInUser.ConnectionStringAppKey);
         using (objSangamCore as IDisposable)
             objSangamCore.GetAll(ref objSangamCoreEntityList);
         objSangamCore = null;
         Mugurtham.Core.Role.RoleCore objRoleCore = new Role.RoleCore(ref _objLoggedInUser);
         using (objRoleCore as IDisposable)
             objRoleCore.GetAll(ref objRoleCoreEntityList);
         objRoleCore = null;
         objLookupEntity.RoleCoreEntity   = objRoleCoreEntityList;
         objLookupEntity.SangamCoreEntity = objSangamCoreEntityList;
     }
     catch (Exception objEx)
     {
         Helpers.LogExceptionInFlatFile(objEx);
     }
     return(0);
 }