public async Task <ICollection <Event> > Find(EventSearchOptions searchOptions) { var eventFilter = new EventFilter(); eventRepository.Find(f => eventFilter.Filter(searchOptions, f)); var result = await Task.Run(() => eventRepository.PagingInFound(0, 10, x => x.Id)); return(result.ToList()); }