public static List <Woreda> GetUpdatesAfter(long?lastVersion, DateTime?lastUpdateTime) { BLL.Woreda v = new BLL.Woreda(); 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<Woreda> GetUpdatesAfter(long? lastVersion, DateTime? lastUpdateTime) { BLL.Woreda v = new BLL.Woreda(); 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<Woreda> GetAll() { BLL.Woreda v = new BLL.Woreda(); v.LoadAll(); return ToList(v); }
public static List <Woreda> GetAll() { BLL.Woreda v = new BLL.Woreda(); v.LoadAll(); return(ToList(v)); }