Пример #1
0
        protected override bool Execute(T ruleContext)
        {
            StoreLocatorManager locatorManager = new StoreLocatorManager();
            var nearestStores = locatorManager.GetNearestStores();

            if (nearestStores.Where(x => x.InventoryStoreId == InventoryStoreId).FirstOrDefault() != null)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
 public NearestStoreManager()
 {
     this.LocatorManager = new StoreLocatorManager();
 }
Пример #3
0
 public Task <PagedResult <OrgUnitLocation> > GetOrgUnitLocationsByArea(SearchArea searchArea, QueryResultSettings queryResultSettings)
 {
     return(Task.Run(() => StoreLocatorManager.Create(CommerceRuntimeManager.Runtime).GetStoreLocations(queryResultSettings, searchArea)));
 }