public Task CreatePromotionAsync(string product, string storeId, int discount, CancellationToken ct = default(CancellationToken)) { var promotion = new Promotion() { Id = DateTime.Now.ToString("yyyyMMddHHmmss"), Product = product, Discount = discount, StoreId = storeId }; return CreatePromotionAsync(promotion, ct); }
public Task CreatePromotionAsync(Promotion promotion, CancellationToken ct = default(CancellationToken)) { return _bootcampService.PostAsync("promotions", promotion, ct); }