public IActionResult GetTicketType()
        {
            try
            {
                var tickets = pass.GetTicketType();

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

                return(NotFound());
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }
예제 #2
0
        public IActionResult GetTicketType()
        {
            _log4net.Info("PassengerController - GetTicketType");

            try
            {
                var tickets = pass.GetTicketType();

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

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