Esempio n. 1
0
 public IEnumerable<Event> GetEvents(Date date)
 {
     return session
         .CreateCriteria(typeof (Event))
         .AddOrder(Order.Desc("Rank"))
         .List<Event>();
 }
Esempio n. 2
0
 public IEnumerable<Event> Execute(Date date)
 {
     return repository.GetEvents(date);
 }