private async Task <IEnumerable <EventViewModel> > GetEventList() { EventListResult response = await QueryAsync(new EventListQuery()); IEnumerable <EventViewModel> viewModel = response.Events.Select(m => m.MapTo <EventViewModel>()); return(viewModel); }
public IActionResult Search([FromBody] EventSearch model) { EventListResult result = this.eventService.Search(model.Keywords, model.OrderBy, model.PageNo, model.PageSize, model.BlockSize); return(Ok(result)); }