Exemplo n.º 1
0
        public IActionResult GetDeparture(long id)
        {
            var departure = service.GetDepartureInfo(id);

            return(departure == null?NotFound($"Departure with id = {id} not found!") as IActionResult
                   : Ok(mapper.Map <DepartureDTO>(departure)));
        }
Exemplo n.º 2
0
        public IActionResult GetDeparture(int id)
        {
            var departure = service.GetDepartureInfo(id);

            return(departure == null?NotFound($"Departure with id = {id} not found!") as IActionResult : Ok(departure));
        }