Using Linq to query objects from a database and checking if they exit in a another list or array
<p>UPDATE: Here's what I'm trying to accomplish. My view has a text box and a search button. Once a search parameter is entered and the button is clicked the textbox and the button are hidden and the results show on that same view. Should I be doing this differently (another view perhaps)? Because I'm getting the following error </p>

<p>NotSupportedException: Could not parse expression '__words_0.Any(Convert(Boolean Contains(System.String).CreateDelegate(System.Func`2[System.String,System.Boolean], job.Description)))': The given arguments did not match the expected arguments: Object of type 'System.Linq.Expressions.UnaryExpression' cannot be converted to type 'System.Linq.Expressions.LambdaExpression'.</p>

<p>it's complaining about the following line  @if (!Model.Any())</p>

<p>View </p>

<pre><code>@model IEnumerable&lt;TheVesume.Jobs&gt;

&lt;div id="search" class="search"&gt;
    @if (!Model.Any())
    {
    &lt;form&gt;
        &lt;div class="row"&gt;
            &lt;div class="col-md-9"&gt;
                &lt;h4&gt;What&lt;/h4&gt;
                &lt;p&gt;@Html.TextBox("SearchString")&lt;/p&gt;
            &lt;/div&gt;

            &lt;div class="col-md-3"&gt;
                &lt;input type="submit" value="Find" class="btn btn-default"&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/form&gt;
    }

    @if (Model.Any())
    {
        @foreach (var item in Model)
        {
            &lt;div&gt;
                @Html.DisplayFor(modelItem =&gt; item.Title)
            &lt;/div&gt;
            &lt;div&gt;
                @Html.DisplayFor(modelItem =&gt; item.Description)
            &lt;/div&gt;
        }
    }

&lt;/div&gt;
</code></pre>

<p>I'm trying to create a Job Search website and I need a way to search the job table in my database. I'm using entity framework. Here's what I have so far </p>

<p>Model</p>

<pre><code>public partial class Jobs
{
    public int Id { get; set; }
    public string Description { get; set; }
    public string Requirements { get; set; }
    public string Title { get; set; }
}
</code></pre>

<p>Controller </p>

<pre><code>public IActionResult Index(string searchString)
{
    var query = from t in db.Jobs
                select t;

    if (!String.IsNullOrEmpty(searchString))
    {
        var strings = searchString.Split(' ');
    }
    return View(whatever);
}
</code></pre>

<p>I need to return everything from the query that contains any of the strings in the searchString to the View. So if the searchString is in the Title or Description or Requirements. I'm new to linq please help. </p>