Exemple #1
0
        public ModelValidationResult Validate(SOWDTO sowDTO)
        {
            ModelValidator validator = new ModelValidator();

            validator.Validate(sowDTO);
            validator.ValidateForEach(sowDTO.SOWAssigns, "sowAssigns", "SOW_FK");
            validator.ValidateForEach(sowDTO.SOWTracks, "sowTracks", "SOW_FK");
            return(validator.ValidationResult);
        }
Exemple #2
0
        public ModelValidationResult ValidateRoleMapping(RoleMapping mappingRole)
        {
            ModelValidator validator = new ModelValidator();

            validator.ValidateForEach(mappingRole.MappingRoleToRoleGroups, "mappingRoleToRoleGroups");
            return(validator.ValidationResult);
        }
Exemple #3
0
        public ModelValidationResult Validate(BTSDTO btsDTO)
        {
            ModelValidator validator = new ModelValidator();

            validator.Validate(btsDTO);
            validator.ValidateForEach(btsDTO.BTSTechnologies, "BTSTechnologies");
            return(validator.ValidationResult);
        }