title: An Object of a type convertible to 'ActionResult' is required
body: <p>I have a list of European union countries.</p>
  
  <p>When a user enters their country of residence on the registration form, I run a <code>foreach</code> block to check if the country they live in is in the EU. If it is, I assign <code>true</code> to a boolean I've declared of <code>isEuropeanUnion</code>. If not, I assign <code>isEuropeanUnion</code> to <code>false</code> and pass that onto my new user object to be saved in the db.</p>
  
  <p>However, because I'm not exiting out of the <code>foreach</code> block on a <code>true</code> hit, it's always returning <code>false</code>. When I try to add a <code>return</code> to the <code>foreach</code> block, I get the red squiggly saying </p>
  
  <blockquote>
    <p>An Object of a type convertible to 'ActionResult' is required.</p>
  </blockquote>
  
  <pre><code>//check if the user resides in a EU country
  var EUCountries = dbContext.EuropeanUnionCountries.ToList();
  
  foreach (var country in EUCountries)
  {
      if (model.CountryOfResidence == country.Name)
      {
          isEuropeanUnion = true;
          return;
      } else
      {
          isEuropeanUnion = false;
      }
  }
  
  var user = new ApplicationUser {
      UserName = model.Email,
      Email = model.Email,
      FirstName = model.FirstName,
      LastName = model.LastName,
      CreatedAt = DateTime.Now,
      LastUpdated = DateTime.Now,
      CountryOfResidence = model.CountryOfResidence,
      IsEuropeanUnion = isEuropeanUnion
  };
  </code></pre>