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