As long as you use a layered architecture where all calls to the repository go through the business layer, you do not need to check it again in the repository.
However, if the repository is used by other systems that do not pass through your business layer, you need to check it at the repository level.
But this actually violates the principle of DRY Do not Repeat Yourself.
Therefore, if you need to check in the repository, you also should not do this at the business level.
Shiraz bhaiji
source share