private void RetrieveData() { using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey)) { CatalogFacade facade = new CatalogFacade(uow); CurrentCatalog = facade.RetrieveOrNewCatalog(InstanceId, new CatalogConverter()); // Retrieve ScheduleEvents of Customer CategoryFacade categoryfacade = new CategoryFacade(uow); CurrentCatalog.CategoryList = categoryfacade.RetrieveCategoryTree(InstanceId, new CategoryConverter()); } }