Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>ASP.NET MVC</code> layer or tier doesn't contains neither business logic nor business model. <code>M</code> in <code>MVC</code> stands for UI model, not the model of your application core and <code>MVC</code> (as well as other <code>MV*</code> patterns) is generally pattern for separating UI concerns. You should send messages (call) your Business Layer (BL) from Controllers, aggregate data, create or map it results into UI model and pass it to view. Your UI model should know nothing of BL model - this distinction makes loosely coupled layers of your application. </p> <blockquote> <p>In other words we can say from where I need to call my middle layer. From the Models or from the Controllers?</p> </blockquote> <p>Definitely from Controllers. You inject dependencies to it and call them from your Action methods. ASP.NET MVC provide lots of mechanisms of injection dependencies into controllers and integrates nicely with NInject, StructureMap and some other IoC containers.</p> <p>Dependencies between components in MVC is given below</p> <p><img src="https://i.stack.imgur.com/YTC16.png" alt="enter image description here"></p> <p>Picture is takes from Martin's Fowler article on <a href="http://martinfowler.com/eaaDev/uiArchs.html" rel="nofollow noreferrer">GUI Architecture</a>, which by the way, very nice reading regarding MVC and MVP. </p> <p>Also, <a href="http://www.pluralsight.com/training/Courses/TableOfContents/patterns-library" rel="nofollow noreferrer">Pluralsight</a> has set of videos on Software Practices, which covers Design Patterns. I've learned a lot from their definition of MVVM and MVP. </p> <p>Reading this materials should increase your understanding not only on patterns itself, but also in how they fit into application environment and interact with it. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload