public PageServices(PXHotelEntities entities) { _localizedResourceServices = HostContainer.GetInstance<ILocalizedResourceServices>(); _pageTemplateServices = HostContainer.GetInstance<IPageTemplateServices>(); _curlyBracketServices = HostContainer.GetInstance<ICurlyBracketServices>(); _clientMenuServices = HostContainer.GetInstance<IClientMenuServices>(); _pageLogServices = HostContainer.GetInstance<IPageLogServices>(); _settingServices = HostContainer.GetInstance<ISettingServices>(); _templateServices = HostContainer.GetInstance<ITemplateServices>(); _userServices = HostContainer.GetInstance<IUserServices>(); _pageRepository = new PageRepository(entities); _clientMenuRepository = new ClientMenuRepository(entities); _pageLogRepository = new PageLogRepository(entities); _pageTagRepository = new PageTagRepository(entities); _tagRepository = new TagRepository(entities); }
public PageServices(PXHotelEntities entities) { _localizedResourceServices = HostContainer.GetInstance <ILocalizedResourceServices>(); _pageTemplateServices = HostContainer.GetInstance <IPageTemplateServices>(); _curlyBracketServices = HostContainer.GetInstance <ICurlyBracketServices>(); _clientMenuServices = HostContainer.GetInstance <IClientMenuServices>(); _pageLogServices = HostContainer.GetInstance <IPageLogServices>(); _settingServices = HostContainer.GetInstance <ISettingServices>(); _templateServices = HostContainer.GetInstance <ITemplateServices>(); _userServices = HostContainer.GetInstance <IUserServices>(); _pageRepository = new PageRepository(entities); _clientMenuRepository = new ClientMenuRepository(entities); _pageLogRepository = new PageLogRepository(entities); _pageTagRepository = new PageTagRepository(entities); _tagRepository = new TagRepository(entities); }