Пример #1
0
 public async void HandlePriceScheduleCreation([FromBody] WebhookPayloads.PriceSchedules.Create payload)
 {
     var update = new PriceScheduleHistory()
     {
         Action     = ActionType.Create,
         ResourceID = payload.Response.Body.ID,
         Resource   = payload.Response.Body,
     };
     await _priceScheduleQuery.Post(update);
 }
Пример #2
0
 public async void HandleProductCreation([FromBody] HSProductCreatePayload payload)
 {
     var update = new ProductHistory()
     {
         Action     = ActionType.Create,
         ResourceID = payload.Response.Body.ID,
         Resource   = payload.Response.Body,
     };
     await _productQuery.Post(update);
 }