title: Where to write Database and Business logic in MVC?
body: <p>As I am learning and working on Asp.Net MVC application, I want to know that what is the better place to write <code>Business Logic</code> and <code>Data Access logic</code> in <code>MVC</code>.</p>
  
  <p>Where should I write DataAccess and Business Logic among three layers (<code>Model, View and Controller</code>) ??</p>
  
  <p>Could anybody please tell me the correct way to write the code for this.</p>
  
  <p>Scenario: I want to <code>retrieve all the employees where employee name like 'Mi%'</code> ( I have <code>SQL procedure to execute and retrieve the data.</code>)</p>
  
  <p>PS: <strong>Want to know that where I should create instance of Business Logic class and where I should create instance of Data Access layers class?</strong></p>
  
  <p>Thanks in advance.</p>