I use Data Annotations in my ASP.NET MVC 3 project to validate the model. These are extremely convenient but currently they are magic to me. I read that data annotations do
because you are not checking if the model is valid... the data notation checks the validity of the model. then you will get your error.