Gestito parametro di ingresso lista Profili

This commit is contained in:
Annamaria Sassi
2026-01-22 14:46:39 +01:00
parent db317ccd77
commit e1ba401353
9 changed files with 158 additions and 29 deletions
+14
View File
@@ -52,5 +52,19 @@ namespace WebWindowComplex.DTO
bool profileOK = !string.IsNullOrEmpty(Profile);
return famHwOK && colorOK && matOK && glassOk && profileOK;
}
/// <summary>
/// Verifica che Payload sia almeno parzialmente popolato
/// </summary>
/// <returns></returns>
public bool IsPopulated()
{
bool famHwOK = FamilyHardware != null;
bool glassOK = Glass != null;
bool matOK = Material != null;
bool colorOK = ColorMaterial != null;
bool profileOK = Profile != null;
return famHwOK || glassOK || colorOK || matOK || profileOK;
}
}
}