Пример #1
0
        public ActionResult <Route> Edit(RoutePatchDTO route)
        {
            var patchRoute = _RouteService.ChangeName(route.Id, route.Name);

            _StopToRouteService.DeleteStops(route.Id);
            _StopToRouteService.AddStops(route.Stops, route.Id);

            return(Ok(route));
        }