示例#1
0
        public IActionResult CheapestRoute(string from, string to)
        {
            if (string.IsNullOrEmpty(from) || string.IsNullOrEmpty(to))
            {
                return(BadRequest());
            }

            return(Ok(_service.CheapestRoute(from, to)));
        }