示例#1
0
        public async Task <QueryMultipleResult <IEnumerable <WebSiteTripViewModel>, WebSiteTripViewModel> > GetAllByDomain([FromQuery] string webSiteDomian, [FromRoute] int pageSize, [FromRoute] int pageNumber, [FromQuery] string keyword)
        {
            var webSiteModels = await _tripManager.GetTripsByWebSiteDoamin(webSiteDomian, new PagedQueryParameters(pageSize, pageNumber, keyword));

            return(_mapper.Map <QueryMultipleResult <IEnumerable <WebSiteTripViewModel>, WebSiteTripViewModel> >(webSiteModels));
        }