コード例 #1
0
 public IEnumerable <LocationDto> GetPublishedLocations()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CMSDataStoreKey))
     {
         LocationFacade     facade = new LocationFacade(uow);
         List <LocationDto> items  = facade.GetPublishedLocations(new LocationConverter());
         return(items);
     }
 }
コード例 #2
0
        public void TestLocations()
        {
            LocationFacade     facade = new LocationFacade(UnitOfWork);
            List <LocationDto> result = facade.GetPublishedLocations <LocationDto>(new LocationConverter());

            if (result != null)
            {
            }
            List <LocationDto> result2 = facade.RetrieveAllLocation <LocationDto>(new LocationConverter());

            if (result2 != null)
            {
            }
        }