示例#1
0
        public async Task <PaginatedList <SerialResult> > Handle(SerialQuery request, CancellationToken cancellationToken)
        {
            var filter   = GetFilter(request);
            var seriales = await _serialService.GetSerials(filter);

            int total = await _serialService.GetTotalSerials(filter);

            PaginatedList <SerialResult> result = CreateResultResponse(request, seriales);

            result.Total = total;
            return(result);
        }