views:

9

answers:

0

Hi,

I have model with 2 list of string example:

        [Required]
        public List<string> prop1 { get; set; }
        [Required]
        public List<string> prop12{ get; set; }

I would like to see that my Model State is validate if each element of list isn't empty.

I know that I can create class that will contain string as property and there set validation, but validation summary will display duplicated message with same property name ( same for each list ).