public async Task <PagedListViewModel <SegmentListViewModel> > Get([FromUri] SegmentQueryViewModel model) { var segmentQueryOptions = _mapping.Map <SegmentQueryOptions>(model); var deals = await _segmentService.GetSegments(segmentQueryOptions).ToPagedListAsync(model).ConfigureAwait(false); return(_mapping.Map <PagedListViewModel <SegmentListViewModel> >(deals)); }