public IActionResult GetBookingDetail(int?id)
        {
            try
            {
                var booking = pass.GetBookingDetail(id);

                if (booking != null)
                {
                    return(Ok(booking));
                }

                return(NotFound());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }
Ejemplo n.º 2
0
        public IActionResult GetBookingDetail(int?id)
        {
            _log4net.Info("PassengerController - GetBookingDetail");

            try
            {
                var booking = pass.GetBookingDetail(id);

                if (booking != null)
                {
                    return(Ok(booking));
                }

                return(NotFound());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }