I'm thinking about how to design my service, especially the part which will provide data for an gridview on the clien side.
The GridView needs this data:
-A list of objects
-Count of all records
The question is:
Should I create one method for getting these data which will return an object which would includes the count and the list. Or rather create two separate methods,one for the list and one for the count.
int Getcount()
andGetAll(int page,int pageSize)
Response GetResponse(int page,int pageSize)