C# error - "Not all code paths return a value"
<p>This is fairly simple method. I use <code>entity framework</code> to get some data and then check some values in a <code>if statement</code>. However right now the method is marked with red.</p>

<p>This is my method:</p>

<pre><code>private bool IsSoleInProduction(long? shoeLastID)
{
    if (shoeLastID == null)
    {
        MessageBox.Show(Resources.ERROR_SAVE, 
                        "Error", 
                        MessageBoxButtons.OK, 
                        MessageBoxIcon.Error);
        return false;
    }

    ISoleService soleService = 
        UnityDependencyResolver.Instance.GetService&lt;ISoleService&gt;();

    List&lt;Sole&gt; entity = 
        soleService.All().Where(s =&gt; s.ShoeLastID == shoeLastID).ToList();

    if (entity.Count() != 0)
    {
        foreach (var items in entity)
        {
            if (items.Status == 20)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
    else
    {
        return false;
    }    
}
</code></pre>

<p>What am I missing?</p>
