I\'ve got a view model like this:
public class SignUpViewModel { [Required(ErrorMessage = \"Bitte lesen und akzeptieren Sie die AGB.\")] [DisplayName
It's enough to add [RegularExpression]:
[DisplayName("I accept terms and conditions")] [RegularExpression("True", ErrorMessage = "You must accept the terms and conditions")] public bool AgreesWithTerms { get; set; }
Note - "True" must start with capital T