Gestito parametro di ingresso lista Profili
This commit is contained in:
@@ -67,9 +67,10 @@ namespace WebWindowComplex.DTO
|
||||
bool glassOK = Glass != null && Glass.Count > 0;
|
||||
bool matOK = Material != null && Material.Count > 0;
|
||||
bool colorOK = ColorMaterial != null && ColorMaterial.Count > 0;
|
||||
bool profileOK = Profile != null && Profile.Count > 0;
|
||||
bool profileOK = ProfileList != null && ProfileList.Count > 0;
|
||||
bool profileOKOld = Profile != null && Profile.Count > 0;
|
||||
bool thresholdOK = Threshold != null && Threshold.Count > 0;
|
||||
return famHwOK && glassOK && hwOK && colorOK && matOK && profileOK && thresholdOK;
|
||||
return famHwOK && glassOK && hwOK && colorOK && matOK && profileOK;
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifica che Payload sia almeno parzialmente popolato
|
||||
@@ -82,9 +83,10 @@ namespace WebWindowComplex.DTO
|
||||
bool glassOK = Glass != null && Glass.Count > 0;
|
||||
bool matOK = Material != null && Material.Count > 0;
|
||||
bool colorOK = ColorMaterial != null && ColorMaterial.Count > 0;
|
||||
bool profileOK = Profile != null && Profile.Count > 0;
|
||||
bool profileOK = ProfileList != null && ProfileList.Count > 0;
|
||||
bool profileOKOld = Profile != null && Profile.Count > 0;
|
||||
bool thresholdOK = Threshold != null && Threshold.Count > 0;
|
||||
return famHwOK || glassOK || hwOK || colorOK || matOK || profileOK || thresholdOK;
|
||||
return famHwOK || glassOK || hwOK || colorOK || matOK || profileOK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user