Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 172693

The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern.

5 votes

Difference between 3-Tier architecture and MVC (Model, View Controller) in ASP.Net

No, they are not the same. MVC is a design pattern for structuring user interface code. It could be used in a three-tier architecture, in which case the pattern would belongs in the user services lay …
JacquesB's user avatar
  • 61k
0 votes

What models do I have? And what's a layer?

In the context of the MVC pattern, a model can really be any kind of object which is exposed through an UI. The MVC pattern is not concerned about what "kind" of object the model object are - rather t …
JacquesB's user avatar
  • 61k
2 votes

Disadvantageous of using entity framework layer directly into presentation layer (ASP.NET MV...

I think you should distinguish between layers and tiers. A layer is just an abstraction level in code. A tier is when this layer is physically separated as a network service, e.g. a REST API. Do you …
JacquesB's user avatar
  • 61k
8 votes

Is dependency injection always a best practice?

No pattern is always a best practice. Patterns are tools like a hammer or a wheelbarrow: The are useful for particular tasks, and you have to use them correct to get any benefit. If someone says "it i …
JacquesB's user avatar
  • 61k
1 vote

How to avoid double data validation in an application with web interface?

An exception from core is probably not appropriate, since you might have multiple independent validation error in an input dataset, and you want to show all the errors in the UI. So I think the best a …
JacquesB's user avatar
  • 61k
34 votes

Should you write your back-end as an API?

No you shouldn't. If you don't have immediate plans to create alternative frontends (like mobile or desktop apps or separate web application) which access the same backend, then you shouldn't introduc …
JacquesB's user avatar
  • 61k
1 vote

How To Design BLL in ASP.NET MVC

It would be inappropriate to throw BadRequest from the business layer since the BL shouldn't have any dependencies to the web interface layer and in principle shouldn't know it is executed as part of …
JacquesB's user avatar
  • 61k
3 votes

Performance concern in object oriented languages

In most business application development the focus is on delivering functionality and writing code as cleanly and maintainable as possible in order to avoid bugs and make it easier to react to busines …
JacquesB's user avatar
  • 61k
0 votes

Designing a CMS. When to use interfaces properly and dependencies and layering

If you can't see where interfaces would help you, then it is likely you don't need interfaces. Interfaces are not in themselves a sign of good design, rather they are solution for specific problems. I …
JacquesB's user avatar
  • 61k
3 votes

MVC Controller calling UoW (unit of work) directly instead of going through Service Layer

If you don't really have any logic beside fetching data from the repository and showing it, then it is perfectly fine to skip a separate service/application layer. In fact it would be a bad practice t …
JacquesB's user avatar
  • 61k
0 votes

Why does the .Net world seem to embrace magic strings instead of staticly typed alternatives?

Asp.Net MVC is strongly inspired by frameworks like Django and Rails originating from dynamically typed languages. Therefore it adopts a number of patterns and conventions which feel a lot more dynami …
JacquesB's user avatar
  • 61k