public static List <Route> GetUpdatesAfter(long?lastVersion, DateTime?lastUpdateTime)
 {
     BLL.Route v = new BLL.Route();
     if (lastVersion.HasValue && lastVersion.Value != 0)
     {
         v.LoadUpdatesAfter(Convert.ToInt32(lastVersion.Value));
     }
     else if (lastUpdateTime.HasValue)
     {
         // v.LoadUpdatesAfterByTime(lastUpdateTime.Value);
     }
     else
     {
         v.LoadAll();
     }
     return(ToList(v));
 }
 public static List<Route> GetUpdatesAfter(long? lastVersion,DateTime? lastUpdateTime)
 {
     BLL.Route v = new BLL.Route();
     if(lastVersion.HasValue && lastVersion.Value != 0)
     {
         v.LoadUpdatesAfter( Convert.ToInt32(lastVersion.Value) );
     }else if(lastUpdateTime.HasValue)
     {
        // v.LoadUpdatesAfterByTime(lastUpdateTime.Value);
     }else
     {
         v.LoadAll();
     }
     return ToList(v);
 }
 public static List<Route> GetAll()
 {
     BLL.Route v = new BLL.Route();
     v.LoadAll();
     return ToList(v);
 }
 public static List <Route> GetAll()
 {
     BLL.Route v = new BLL.Route();
     v.LoadAll();
     return(ToList(v));
 }