title: cannot apply indexing with [] to an expression
body: <pre><code> var dbPerson = from p in db.People 
                  where p.Id == PersonId select p;
   dbPerson[0].HolidaysRemaining--;
  </code></pre>
  
  <p>is throwing me an error with dbPerson[0] saying cannot apply indexing with [] to an expression of type 'system.linq.lqueryable,holidayBookingApp.model.person></p>
  
  <p>can someone please advise how I can resolve this?</p>
  
  <p>Thanks</p>