Beispiel #1
0
        public async Task <ActionResult <IEnumerable <TodoTaskDto> > > GetPageListAsync(TodoType?type, int page = 1, int pageSize = 20)
        {
            var list = await _queries.GetPageListAsync(type, page, pageSize);

            return(Ok(list));
        }
Beispiel #2
0
        public async Task <ActionResult <IEnumerable <TodoTaskDto> > > GetPageListAsync(TodoType?type, int page = 1, int pageSize = 20, CancellationToken cancellationToken = default)
        {
            var list = await _queries.GetPageListAsync(type, page, pageSize, cancellationToken);

            return(Ok(list));
        }