server should use hand written validations, because the dataannotations dont work well for required value types, as they are initialized to their default value, before the validations is checked.
causing a required int to be set to zero, and pass validation when the client didnt even set the field.
server should use hand written validations, because the dataannotations dont work well for required value types, as they are initialized to their default value, before the validations is checked.
causing a required int to be set to zero, and pass validation when the client didnt even set the field.