Example #1
0
        public async Task <IActionResult> UpdateSubcriptionOffers(int subscriptionOffersId, [FromBody] UpdateSubscriptionOfferRequest request)
        {
            var updateSubcriptionOffersCommand = new UpdateSubscriptionOfferCommand(subscriptionOffersId, request);
            var result = await mediator.Send(updateSubcriptionOffersCommand);

            return(StatusCode((int)result.Code, result.Value));
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateSubscriptionPlanCommand" /> class.
 /// </summary>
 /// <param name="subscriptionPlanIdId">The story identifier.</param>
 /// <param name="Request">The request.</param>
 public UpdateSubscriptionOfferCommand(int subscriptionOfferId, UpdateSubscriptionOfferRequest request)
 {
     SubscriptionOfferId = subscriptionOfferId;
     Request             = request;
 }
        public async Task <IActionResult> UpdateSubcriptionOffers(int subscriptionOffersId, [FromBody] UpdateSubscriptionOfferRequest request)
        {
            var result = await offerService.UpdateSubcriptionOffers(subscriptionOffersId, request);

            return(StatusCode((int)result.Code, result.Value));
        }