Suppose i have User entity. I want to check if user id exists on database. I know how to check, but in which layer ? What is the best and more understandable layer for that ?
In my opinion, it should be Controller layer. But i don't think it is gonna be smooth. I've never seen extra methods for checking in a User Controller class on sample projects. Maybe i'm missing something, what do you think ?