Пример #1
0
 public static List <Region> GetUpdatesAfter(long?lastVersion, DateTime?lastUpdateTime)
 {
     BLL.Region v = new BLL.Region();
     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<Region> GetUpdatesAfter(long? lastVersion, DateTime? lastUpdateTime)
 {
     BLL.Region v = new BLL.Region();
     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);
 }
Пример #3
0
 public static List <Region> GetAll()
 {
     BLL.Region v = new BLL.Region();
     v.LoadAll();
     return(ToList(v));
 }
 public static List<Region> GetAll()
 {
     BLL.Region v = new BLL.Region();
     v.LoadAll();
     return ToList(v);
 }