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); } }
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) { } }