public IEnumerable <SubroutesInRoute> GetAllSubrouteInRoutes() { using (var context = new ConfigurationToolContext()) { var repository = new SubroutesInRouteRepository(context); return(repository.GetAll()); } }
public void DeleteSubrouteInRoute(SubroutesInRoute subrouteinroute) { using (ConfigurationToolContext context = new ConfigurationToolContext()) { var repository = new SubroutesInRouteRepository(context); repository.Delete(subrouteinroute); context.SaveChanges(); } }