Q:

MVC: Display an input if two rows match in database using LINQ

I am trying to hide that input if in database current logged user have already a Job posted on website, if UserID doesn't have anything added in database I want that input to be displayed/
At this point in View is displayed only that '< span >' no matter what.
        @{
            var db = new JobSite3.Models.ApplicationDbContext();   
            var controller = new JobSite3.Controllers.BaseController(); 
        }

        @if (db.Jobs.Where(x => x.UserID == controller.LoggedUserId).Select(x => x.ID) != null)
        {
            <span>No input</span>
        }
        else
        {
            <div class="form-group">
                <div class="col-md-offset-1 col-md-10">
                    <input type="submit" value="Create" class="btn btn-default"/>
                </div>
            </div>
        }

A:

As per Stephen Muecke suggestions I made my code work and here is the solution in case someone needs too:
Controller:
    // GET: Jobs/Create
    public ActionResult Create()
    {
       var query = db.Jobs.Where(x => x.UserID == LoggedUserId).Select(x => x.ID.ToString()).Any();

       ViewBag.HasJobs = query;

       return View();

    }

View:
        @if (ViewBag.HasJobs != true)
        {
            <div class="form-group">
                <div class="col-md-offset-1 col-md-10">
                    <input type="submit" value="Create" class="btn btn-default" />
                </div>
            </div>
        }
        else
        {
            <div class="form-group">
                <div class="col-md-offset-1 col-md-10">
                    <input type="submit" value="Create" class="btn btn-default" disabled="disabled" />
                </div>
            </div>
        }

There isn't anymore a < span > but the last input have a disabled parameter, which was the first intention.

