コード例 #1
0
        public async Task ShopSync(ShopSyncRequestDto input)
        {
            var localShop = await _mallShopRepository.GetShopsAsync(input.ShopIds);

            foreach (var id in input.ShopIds)
            {
                if (localShop.All(x => x.Id != id))
                {
                    // shop will auto sync to mallShop table
                    var syncShop = await _mallShopLookupService.FindByIdAsync(id);
                }
            }

            await Task.CompletedTask;
        }
コード例 #2
0
ファイル: MallShopAppService.cs プロジェクト: icxldd/SoMall
        public async Task ShopSync(ShopSyncRequestDto input)
        {
            var localShops = await _mallShopRepository.GetShopsAsync(input.ShopIds);

            foreach (var localShop in localShops)
            {
                // if (localShop.All(x => x.Id != id))
                // {
                // shop will auto sync to mallShop table
                var syncShop = await _mallShopLookupService.FindByIdAsync(localShop.Id);

                //localShop.Update(syncShop as IShopData);
                // }
            }

            await Task.CompletedTask;
        }