Exemplo n.º 1
0
        public IActionResult DeleteRouteInStops(int id, RoutesStops routesStops)
        {
            var routeStop = _stops.GetRouteStop(id, routesStops.RouteId);

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