/// <summary> /// Get list of static html pages /// </summary> /// <returns></returns> public List<PageSpecificPlaceholderConfigBO> GetAllPageSpecificPlaceholderConfig() { var pageSpecificPlaceholderConfigProvider = new PageSpecificPlaceholderConfigProvider(); var masterDataProvider = new MasterDataProvider(); var systemModulesList = masterDataProvider.GetSystemModules(); var pageSpecificPlaceholderConfigList = pageSpecificPlaceholderConfigProvider.GetAllPageSpecificPlaceholderConfig(); return (from systemModule in systemModulesList join pageSpecificPlaceholderConfig in pageSpecificPlaceholderConfigList on systemModule.Id equals pageSpecificPlaceholderConfig.ModuleId into pageSpecificPlaceholderConfigListLeft from pageSpecificConfig in pageSpecificPlaceholderConfigListLeft.DefaultIfEmpty() select new PageSpecificPlaceholderConfigBO { Id = pageSpecificConfig == null ? 0 : pageSpecificConfig.Id, ModuleId = systemModule.Id, ModuleName = systemModule.Module, TopFrameHTML = pageSpecificConfig == null ? string.Empty : pageSpecificConfig.TopFrameHTML, LeftFrameHTML = pageSpecificConfig == null ? string.Empty : pageSpecificConfig.LeftFrameHTML, RightFrameHTML = pageSpecificConfig == null ? string.Empty : pageSpecificConfig.RightFrameHTML, BottomFrameHTML = pageSpecificConfig == null ? string.Empty : pageSpecificConfig.BottomFrameHTML }).ToList(); }
public MasterDataProviderDAL(FPApplication fpApplication) { this.FPApplication = fpApplication; this.masterDataProvider = new MasterDataProvider(fpApplication); }