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); }
public ModelValidationResult ValidateRoleMapping(RoleMapping mappingRole) { ModelValidator validator = new ModelValidator(); validator.ValidateForEach(mappingRole.MappingRoleToRoleGroups, "mappingRoleToRoleGroups"); return(validator.ValidationResult); }
public ModelValidationResult Validate(BTSDTO btsDTO) { ModelValidator validator = new ModelValidator(); validator.Validate(btsDTO); validator.ValidateForEach(btsDTO.BTSTechnologies, "BTSTechnologies"); return(validator.ValidationResult); }