Exemple #1
0
 public async Task SaveAsync(Store store)
 {
     if (store == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, store, x => x.StoreId == store.StoreId);
 }
Exemple #2
0
 public async Task SaveAsync(Coupon coupon)
 {
     if (coupon == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, coupon, x => x.CouponId == coupon.CouponId);
 }
Exemple #3
0
 public async Task SaveAsync(Category category)
 {
     if (category == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, category, x => x.CategoryId == category.CategoryId);
 }
Exemple #4
0
 public async Task SaveAsync(FailedEvent @event)
 {
     if (@event == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, @event, x => x.Id == @event.Id);
 }
Exemple #5
0
 public async Task SaveAsync(AffiliateStoreMatch matchedStore)
 {
     if (matchedStore == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedStore, x => x.AdvertiseStoreId == matchedStore.AdvertiseStoreId &&
                             x.AffiliateProgram == matchedStore.AffiliateProgram &&
                             x.AffiliateStoreId == matchedStore.AffiliateStoreId);
 }
Exemple #6
0
 public async Task SaveAsync(AffiliateCouponMatch matchedCoupon)
 {
     if (matchedCoupon == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedCoupon, x => x.AdvertiseCouponId == matchedCoupon.AdvertiseCouponId &&
                             x.AffiliateProgram == matchedCoupon.AffiliateProgram &&
                             x.AffiliateCouponId == matchedCoupon.AffiliateCouponId);
 }
Exemple #7
0
 public async Task SaveAsync(AffiliateCategoryMatch matchedCategory)
 {
     if (matchedCategory == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, matchedCategory, x => x.AdvertiseCategoryId == matchedCategory.AdvertiseCategoryId &&
                             x.AffiliateProgram == matchedCategory.AffiliateProgram &&
                             x.AffiliateCategoryId == matchedCategory.AffiliateCategoryId);
 }