title: Calling the Model method will work (with or without) using the .Tolist()
body: <p>i have the following model method inside my asp.net MVc web application:-</p>
  
  <pre><code>public IQueryable&lt;User&gt; searchusers(string q, int id) 
          { 
              return from u in entities1.Users 
                   where (!u.Users_Classes.Any(c =&gt; c.ClassID == id) &amp;&amp; (u.UserID.Contains(q)) 
                     select u; 
  } 
  </code></pre>
  
  <p>which will be called using the following action method:-</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Post)]
                   public PartialViewResult Search(string q, int classid)
                  {
  
                      var users = r.searchusers(q, classid).ToList();
  
                      ViewBag.id = classid;
  // code does here
                 }
  </code></pre>
  
  <p>now if i remove the .ToList() from my action method the code will still work fine,, so will using the .ToList() method bring any advantages or features ?
  BR</p>
  
  <p><strong>Edit:-</strong>
  here is the full code for my action method:-</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Post)]
               public PartialViewResult Search(string q, int classid)
              {
  
                  var users = r.searchusers(q, classid).ToList();
                                  ViewBag.id = classid;
                  return PartialView("_usersearch", users);
  
             }
  </code></pre>