I usually define my repository interfaces at Domain Layer with DDD. Given that the UI needs to display some paged data I thought that adding params such as
pageSize, and define a model
PagingResult at my domain layer have not to do with domain itself.
This is the method signature:
PagingResult<Customer> GetCustomers(int currentPage, int pageSize, string nameToFind);
Should I keep this method at my domain
ICustomerRepository? I thought about define it on application layer within a new
So basically the question is: is it fine or common to have this kind of method on domain repositories interfaces?