Exemplo n.º 1
0
 public DateTime GetTimeAtPoint(RoutePoint point)
 {
     return(StartDate.Add(Route.StartTime).Add(point.FromStartTime));
 }
Exemplo n.º 2
0
 public bool IsVacant(RoutePoint fromPoint, RoutePoint toPoint)
 {
     return(!Tickets.Any(e => e.ToPoint.FromStartTime > fromPoint.FromStartTime &&
                         e.FromPoint.FromStartTime < toPoint.FromStartTime));
 }