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); }
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); }