Ejemplo n.º 1
0
        public IActionResult GetListByJourneyDate(DateTime journeyDate, string station, string destination)
        {
            var result = _journeyService.GetListByJourneyDate(journeyDate, station, destination);

            if (result.Success)
            {
                return(Ok(result.Data));
            }
            return(BadRequest(result.Message));
        }