private static SSRRequestDto CreateSsrRequest(SellSSRDto parameters) { //ToDo return(new SSRRequestDto() { CurrencyCode = parameters.Booking.CurrencyCode, SessionId = parameters.SessionToken }); }
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); } }