Ejemplo n.º 1
0
        public ActionResult GetRoute(string destinationCountryCode)
        {
            var val = new { destination = destinationCountryCode, list = _route.RouteFromUsaToDestination(destinationCountryCode) };

            if (val.list == null)
            {
                return(NotFound());
            }
            return(Ok(val));
        }