passing parameters with conditionally
<p><strong>Update:</strong></p>

<p>i have a dropdownlist with seven different optins like (date, subject, press, cia, media...) and user will select one of the item from the dropdownlist and click on search button to get the results.</p>

<p>here is my repository class GetInquires method which accepts 7 parameters but it will pass only one prameters at a time to the storeproc and in case of Date (it will pass both from/to)</p>

<pre><code>public List&lt;Inquiry&gt; GetInquiries(string fromDate, string toDate, 
                                                string subject, string press,
                                                string cia, string media, 
                                                string status) 
</code></pre>

<p>here is what i have come-up with passsing the parameters to the GetInquires</p>

<pre><code> if (!string.IsNullOrEmpty(this.txtSubject.Text.Trim()))
            {
                e.Result = reporterRepo.GetInquiries(null,null,txtSubject.Text,null,null,null,null);
            }
            else
            {


               e.Result = reporterRepo.GetInquiries(null,null,null,null,null,null,null);
            }
else if (!string.IsNullOrEmpty(this.fromDate.Text.Trim()))
         e.Result = reporterRepo.GetInquiries(fromDate.Text,null,null,null,null,null,null)
     .......................
     ...................
      ....................
</code></pre>

<p>i have to continue seven times with (if else if conditions) for all seven parameters
is there  away i can do it more clearly and more readability?</p>
