Пример #1
0
 public IEnumerable <SubroutesInRoute> GetAllSubrouteInRoutes()
 {
     using (var context = new ConfigurationToolContext())
     {
         var repository = new SubroutesInRouteRepository(context);
         return(repository.GetAll());
     }
 }
Пример #2
0
 public void DeleteSubrouteInRoute(SubroutesInRoute subrouteinroute)
 {
     using (ConfigurationToolContext context = new ConfigurationToolContext())
     {
         var repository = new SubroutesInRouteRepository(context);
         repository.Delete(subrouteinroute);
         context.SaveChanges();
     }
 }