title: Add query to model in asp.net mvc
body: <p>My question is, how do I add a custom query to a model in asp.net mvc  , all the tutorial I had seen they make the query in the controller.</p>
  
  <p>So far in my reading everything says that the controller should no be aware of the database, all the queries should be made in the model but I can not seem to find any example of this.</p>
  
  <p>I try to do it but I do not have the DbContext available in the model, so how should I do it?</p>