+
+
+
+ Name something you can put in a salad:
+
+
+
+
+
+ @foreach (var message in context.GetValidationMessages())
+ {
+ - @message
+ }
+
+
+
+
+@code {
+ [SaladChefValidator]
+ public string SaladIngredient { get; set; }
+
+ public class SaladChefValidatorAttribute : ValidationAttribute
+ {
+ protected override ValidationResult IsValid(object value, ValidationContext validationContext)
+ {
+ var saladChef = validationContext.GetRequiredService