コード例 #1
0
ファイル: Route.cs プロジェクト: diegoffline/carpooling13
 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
ファイル: Route.cs プロジェクト: diegoffline/carpooling13
 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
ファイル: Route.cs プロジェクト: diegoffline/carpooling13
 public Route(Place startingPoint)
 {
     this.startingPoint = startingPoint;
     type = new RouteType();
 }