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); }
public NearestStoreManager() { this.LocatorManager = new StoreLocatorManager(); }
public Task <PagedResult <OrgUnitLocation> > GetOrgUnitLocationsByArea(SearchArea searchArea, QueryResultSettings queryResultSettings) { return(Task.Run(() => StoreLocatorManager.Create(CommerceRuntimeManager.Runtime).GetStoreLocations(queryResultSettings, searchArea))); }