Gestito parametro di ingresso lista Profili
This commit is contained in:
@@ -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