Пример #1
0
 private static SSRRequestDto CreateSsrRequest(SellSSRDto parameters)
 {
     //ToDo
     return(new SSRRequestDto()
     {
         CurrencyCode = parameters.Booking.CurrencyCode,
         SessionId = parameters.SessionToken
     });
 }
Пример #2
0
 public void SellSSR(SellSSRDto parameters)
 {
     try
     {
         _bookingService.SellSSR(CreateSsrRequest(parameters));
     }
     catch (Exception ex)
     {
         var errorMessage =
             $"Error in: {GetType().FullName}, method: Sell, exception: SellSSRException, message: {ex.Message}.";
         throw new SellSSRException(errorMessage);
     }
 }