title: The correct place to write queries in asp.net mvc
body: <p>Let's say i have a blog with posts by different authors, and the authors should be able see what articles they have written.</p>
  
  <p>Now i write a query using db context of entity framework.</p>
  
  <p>Now the question is where should the query go in the specific action method of the controller or the model class.</p>
  
  <p>I am kinda new and this thing has been confusing me.</p>