public Route(Place startingPoint, Place destination, Path path, RouteType type, string name) : this(startingPoint, destination) { this.path = path; this.type = type; this.name = name; }
public Route() { startingPoint = new Place(); destination = new Place(); type = new RouteType(); path = new Path(); }
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); }
public Route(Place startingPoint) { this.startingPoint = startingPoint; type = new RouteType(); }