예제 #1
0
        public IActionResult DeleteStopInRoutes(int id, RoutesStops routesStops)
        {
            var routeStop = _routes.GetRouteStop(routesStops.StopId, id);

            if (routeStop != null)
            {
                _routes.DeleteRouteInStops(routesStops.StopId, id);
                return(Ok());
            }
            else
            {
                return(NotFound($"route or stop with id {id} was not found"));
            }
        }