public IActionResult Get(string startPoint, string endPoint) { if (string.IsNullOrEmpty(startPoint) || string.IsNullOrEmpty(endPoint)) { return(this.BadRequest("Must supply startPoint and endPoint")); } var shortestRouteList = routeFinder.CalculateShortestRoute(startPoint, endPoint); return(this.Ok(shortestRouteList)); }