Exemplo n.º 1
0
        public async Task <BookingInfoRes> GetBookingDetailsByParam(BookingDetailReq bookingDetailReq, string ticket)
        {
            BookingInfoRes bookingInfoRes = new BookingInfoRes();

            bookingInfoRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceBooking:GetBookingDetailsByParam"), bookingDetailReq, typeof(BookingInfoRes), ticket);

            return(bookingInfoRes);
        }
Exemplo n.º 2
0
        public async Task <BookingInfoRes> GetBookingDetailsByParam([FromBody] BookingDetailReq request)
        {
            var response = new BookingInfoRes();

            try
            {
                response = await _bookingRepository.GetBookingDetailsByParam(request);

                response.ResponseStatus.Status       = "Success";
                response.ResponseStatus.ErrorMessage = response != null ? "" : "No Records Found.";
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message;
            }

            return(response);
        }