Check for data in database before delete
<p>I have these 2 forms (Add.aspx) "CalculationParameters" and "CalculationParametersValues". I also have 2 forms (Delete.aspx). These two forms are related. If there is no CalculationParameter, then you cannot add CalculationParametersValues. Now my problem is... when I delete a CalculationParameter, I want to check first if the CalculationParammeter has any CalculationParametersValues. I need to do this using this "<code>=&gt;</code>" which is new to me, but I can't get the hang of it.
I get the values from database from here : <code>"Factory.Definitions.CalculationParameters.List()"</code> and <code>"Factory.Definitions.CalculationParametersValues.List()"</code>.</p>

<p>It should be something like this (I think):</p>

<pre><code>Factory.Definitions.CalculationParameters.List(item =&gt; (item.Id == &lt;NOW here is where I should equal that Id with "CalculationParameterId"&gt;)
</code></pre>

<p>Help please ?</p>
