Hi
What would be the best way to validate the uniqueness of a model? For example, making sure that only one user can have a certain username.
I am using the repository pattern to interact with the database, so should I place the check int there? If so, how do I get this to filter back to the model?
Thanks