addPromitionToDatabase method

  1. @override
Future<void> addPromitionToDatabase (
  1. PromotionAdditionRequest req
)
override

Implementation

@override
Future<void> addPromitionToDatabase(PromotionAdditionRequest req) async {
  HttpBasedRequest httpRequest = buildHttpBasedRequest();
  httpRequest.promotionAdditionRequest = req;
  HttpBasedResponse response =
      await sendRequest(httpRequest, getPromotionAdditionEndpoint());
  maybePostException(response);
}