예제 #1
0
 public Route(Place startingPoint, Place destination, Path path, RouteType type, string name)
     : this(startingPoint, destination)
 {
     this.path = path;
     this.type = type;
     this.name = name;
 }
예제 #2
0
 public Route()
 {
     startingPoint = new Place();
     destination = new Place();
     type = new RouteType();
     path = new Path();
 }
예제 #3
0
        public List <Route> getRoutesByType(CarpoolingModel.Types.RouteType type)
        {
            List <Route> listRt = new List <Route>();
            var          routes = db.Routes.Where(s => s.routeType == type.Id);

            foreach (CarpoolingDAL.Route res in routes)
            {
                listRt.Add(getRouteById(res.idRoute));
            }
            return(listRt);
        }
예제 #4
0
 public Route(Place startingPoint)
 {
     this.startingPoint = startingPoint;
     type = new RouteType();
 }