Filters tasks based on the specified criteriapost https://{baseUrl}/api/tasks/filterTasksUsed for sorting, paging, and searching