public IActionResult GetTicketType() { try { var tickets = pass.GetTicketType(); if (tickets != null) { return(Ok(tickets)); } return(NotFound()); } catch (Exception) { return(BadRequest()); } }
public IActionResult GetTicketType() { _log4net.Info("PassengerController - GetTicketType"); try { var tickets = pass.GetTicketType(); if (tickets != null) { return(Ok(tickets)); } return(NotFound()); } catch (Exception) { return(BadRequest()); } }