Tagged Questions
7
votes
5answers
2k views
MVC Pattern, ViewModels, Location of conversion
I've been working with ASP.Net MVC for around a year now and have created my applications in the following way.
X.Web - MVC Application Contains
Controller and Views
X.Lib - Contains
...
6
votes
2answers
359 views
Why is using named routes for generating outbound URLs a violation of Separation of Concerns?
What is separation of concerns?
In computer science, separation of concerns (SoC) is the process of
breaking a computer program into distinct features that overlap in
functionality as little ...
4
votes
6answers
286 views
Is MVC ever considered/applied system-wide?
I was having a discussion with a colleague and he bought up the topic of MVC and the use of ViewModels in ASP.NET MVC.
The discussion was that, in an n-layer architecture, the UI, Business Layer and ...
3
votes
5answers
658 views
MVC exposes database primary keys?
I'm going through a MVC tutorial, and I notice that convention seems to be to expose a tables primary key on detail pages/urls (ie. /Movies/Details/5 as an example from the tutorial).
It's obviously ...
3
votes
2answers
388 views
Mixing Angular and ASP.NET MVC/Web api?
I come from using ASP.NET MVC/Web API and now I am starting to use Angular but I am not clear on the proper way to mix them.
Once I am using Angular does the MVC sever side concepts still provide any ...
3
votes
1answer
86 views
MVC URL formatting/design
In refactoring a lot of MVC code, I have run into an issue with my URL design. For example, let's say we have a Venue object
public class Venue
{
public long ID { get; set; }
public ...
2
votes
2answers
292 views
MVC, when to separate controllers?
I'm starting with MVC and have a newbie question. What would be the logic criteria to define what a controller should encompass? For example, say a website has a 'help' section. In there, there are ...
2
votes
2answers
488 views
MVC : Does Code to save data in cache or session belongs in controller?
I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model?
I would add that I have other controller methods ...
2
votes
1answer
435 views
Newbie ASP.NET developer being forced into MVC4 with WebForms
I recently got hired on as a new ASP.NET developer (C# code behind). When I arrived, I was told that they were moving to MVC 4, and so I bought two books on that. However, the other day I learned ...
2
votes
1answer
1k views
Modular enterprise architecture using MVC and Orchard CMS
I'm making a large scale MVC application using Orchard. And I'm going to be separating my logic into modules. I'm also trying to heavily decouple the application for maximum extensibility and ...
1
vote
3answers
461 views
Is there a canonical resource on ASP.NET MVC ?
I want to learn ASP.NET MVC. I have a solid background in asp.net web forms. Are there any resources that you can recommend to help me make the change? I'm ideally looking for videos which touch on ...
1
vote
4answers
342 views
Need recommendation for transferring ASP.NET MVC skills to PHP
I am looking to translate my skills in .NET to PHP - specifically in regards to ASP.NET MVC. At work I am currently using .NET MVC 2.0 on a variety of projects and thoroughly enjoy the platform. ...
1
vote
1answer
302 views
MVC 3 Page design; split pages into Many partials?
I am currently working on an MVC 3 Web app project where I need to display a lot of information on the front page. I am relatively new at web page layout and design so I have hit a wall in terms of ...
1
vote
1answer
115 views
Good resources for a MVC.Net developer going back to WebForms? [closed]
Well it looks like I may be forced to build a new system in webforms after having worked exclusively in MVC for the last 3 years.
Initially I didnt think this was going to be a problem except the ...
1
vote
2answers
208 views
What are some useful things you can do with Mvc Modelbinders?
It occurs to me that the ModelBinder mechanism in ASP MVC
public interface IModelBinder {
object BindModel(System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ModelBindingContext ...