Exemplo n.º 1
0
 public async Task SaveAsync(Store store)
 {
     if (store == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, store, x => x.StoreId == store.StoreId);
 }
Exemplo n.º 2
0
 public async Task SaveAsync(Coupon coupon)
 {
     if (coupon == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, coupon, x => x.CouponId == coupon.CouponId);
 }
Exemplo n.º 3
0
 public async Task SaveAsync(Category category)
 {
     if (category == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, category, x => x.CategoryId == category.CategoryId);
 }
Exemplo n.º 4
0
 public async Task SaveAsync(FailedEvent @event)
 {
     if (@event == null)
     {
         return;
     }
     await Wrapper.SaveAsync(CollectinoName, @event, x => x.Id == @event.Id);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }