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