예제 #1
0
 public static List <Tour> GetListRecentTourbynew(int limit = 6)
 {
     using (thiennhanEntities conn = new thiennhanEntities())
     {
         var _data = (from to in conn.Tours
                      orderby to.Adddate descending
                      select to).Take(limit).ToList();
         return(_data);
     }
 }
예제 #2
0
 public static List <Tour> GetListRecentTour(List <int> IdTour, int limit = 6)
 {
     using (thiennhanEntities conn = new thiennhanEntities())
     {
         var _data = (from to in conn.Tours
                      where IdTour.Contains(to.ID)
                      orderby to.Adddate descending
                      select to).Take(limit).ToList();
         return(_data);
     }
 }