예제 #1
0
        public async Task <IActionResult> PostRoute([FromBody] RouteRequestModel route)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Ok(await _route.FindRoute(route)));
        }