コード例 #1
0
        private async Task <IEnumerable <EventViewModel> > GetEventList()
        {
            EventListResult response = await QueryAsync(new EventListQuery());

            IEnumerable <EventViewModel> viewModel = response.Events.Select(m => m.MapTo <EventViewModel>());

            return(viewModel);
        }
コード例 #2
0
        public IActionResult Search([FromBody] EventSearch model)
        {
            EventListResult result = this.eventService.Search(model.Keywords, model.OrderBy, model.PageNo, model.PageSize, model.BlockSize);

            return(Ok(result));
        }