I usually define my repository interfaces on the domain layer with DDD. Since the user interface needs to show some paged data, I thought that adding parameters like
page size, and define a model
PagingResult In my domain layer they do not have to do with the domain itself.
This is the signature of the method:
GetCustomers (int currentPage, int pageSize, string nameToFind);
I must keep this method in my domain
Customer repository? I thought about defining it in the application layer within a new
Basically, the question is: is it good or common to have this type of method in the interfaces of the domain repositories?