Guest User

Untitled

a guest
May 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.         public List<Destination> GetRoutelog(DateTime from, DateTime to)
  2.         {
  3.             var result = new List<Destination>();
  4.             var index = 0;
  5.             do
  6.             {
  7.                 if (RouteLog[index].Arrival >= from && RouteLog[index].Arrival <= to && RouteLog[index].Departure >= from && RouteLog[index].Departure <= to)
  8.                 {
  9.                     result.Add(RouteLog[index]);
  10.                 }
  11.             } while (index < RouteLog.Count);
  12.             return result;
  13.         }
Add Comment
Please, Sign In to add comment