December 2019
Intermediate to advanced
598 pages
12h 21m
English
Now, let's revise the implementation of the questions endpoint with the search query parameter so that we can use data paging:
public interface IDataRepository{ ... IEnumerable<QuestionGetManyResponse> GetQuestionsBySearch(string search); IEnumerable<QuestionGetManyResponse> GetQuestionsBySearchWithPaging( string search, int pageNumber, int pageSize); ...}
So, the method will take in the page number and size as parameters.
public IEnumerable<QuestionGetManyResponse> GetQuestionsBySearchWithPaging( string search, int pageNumber, int pageSize ...
Read now
Unlock full access