public async Task SaveAsync(IList <Coupon> coupons) { if (coupons == null || !coupons.Any()) { return; } await Wrapper.BulkWriteAsync(CollectinoName, coupons, x => y => x.CouponId == y.CouponId); }
public async Task SaveAsync(IList <AffiliateStore> stores) { if (stores == null || !stores.Any()) { return; } await Wrapper.BulkWriteAsync(CollectinoName, stores, x => y => x.StoreId == y.StoreId); }
public async Task SaveAsync(IList <Category> categories) { if (categories == null || !categories.Any()) { return; } await Wrapper.BulkWriteAsync(CollectinoName, categories, x => y => x.CategoryId == y.CategoryId); }