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)); }
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)); }