private static void GetAllLookupsCorrelationsIfNoCache() { long? TimeZone = (long)DefaultTimeZone.CentralStandardTime; string errorMsg = string.Empty; if (System.Web.HttpContext.Current.Cache[ConstantTexts.LookupTypeCorrelationCacheKey] == null || System.Web.HttpContext.Current.Cache[ConstantTexts.LookupMasterCorrelationCacheKey] == null) { List <DOCMN_LookupTypeCorrelations> lstDOCMN_LookupTypeCorrelations; List <DOCMN_LookupMasterCorrelations> lstDOCMN_LookupMasterCorrelations; DOCMN_LookupTypeCorrelations objDOCMN_LookupTypeCorrelations = new DOCMN_LookupTypeCorrelations(); objDOCMN_LookupTypeCorrelations.IsActive = true; BLLookupCorrelations objBLLookupCorrelation = new BLLookupCorrelations(); ExceptionTypes exResult = objBLLookupCorrelation.GetAllLookupTypeCorrelations(TimeZone, objDOCMN_LookupTypeCorrelations, out lstDOCMN_LookupTypeCorrelations, out lstDOCMN_LookupMasterCorrelations, out errorMsg); AddToCache(ConstantTexts.LookupTypeCorrelationCacheKey, lstDOCMN_LookupTypeCorrelations); AddToCache(ConstantTexts.LookupMasterCorrelationCacheKey, lstDOCMN_LookupMasterCorrelations); } }