Esempio n. 1
0
 public static IEnumerable <TourLocations> ListTourLocationsByTourId(int?TourId)
 {
     return(TourLocationDAL.Get(
                t => !TourId.HasValue || t.TourId == TourId,
                t => t.OrderBy(to => to.Order),
                new List <Expression <Func <TourLocations, object> > >
     {
         t => t.Location
     }
                ));
 }