public NewsServices(PXHotelEntities entities) { _localizedResourceServices = HostContainer.GetInstance<ILocalizedResourceServices>(); _newsCategoryServices = HostContainer.GetInstance<INewsCategoryServices>(); _newsRepository = new NewsRepository(entities); _newsNewsCategoryRepository = new NewsNewsCategoryRepository(entities); }
public NewsServices(PXHotelEntities entities) { _localizedResourceServices = HostContainer.GetInstance <ILocalizedResourceServices>(); _newsCategoryServices = HostContainer.GetInstance <INewsCategoryServices>(); _newsRepository = new NewsRepository(entities); _newsNewsCategoryRepository = new NewsNewsCategoryRepository(entities); }