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());
            }
        }