public bool IsCheckProblem(WaterSources waterSources, Plumbing plumbing, GroundWater groundWater, River river, Pool pool, Irrigation irrigation) { return(IsCheckPlumbing(waterSources?.Plumbing, plumbing) || IsCheckUnderGround(waterSources?.UnderGround, groundWater) || IsCheckPool(waterSources?.Pool, pool) || IsCheckRiver(waterSources?.River, river) || IsCheckIrrigation(waterSources?.Irrigation, irrigation)); }
public bool IsCheckHasProblemGroundWater(GroundWater groundWater) { return(groundWater?.PublicGroundWater.WaterResources.All(it => it.QualityProblem?.HasProblem == true) == true); }
public bool IsCheckUnderGround(bool?underGround, GroundWater groundWater) { return((underGround == true) ? IsCheckHasProblemGroundWater(groundWater) : false); }