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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 4127

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

1
vote
You could try storing client drafts in a cookie or the browser's web storage, that way the clients have the drafts 'persisted' but they aren't in the database.
answered Oct 9 '13 by Eric King
3
votes
I would consider your WebAPI layer to be a (non-graphical) user interface layer, equal to the MVC layer. Put as much of the non-UI code in the Service layer (or below) as possible, and write the MVC …
answered Jan 8 '13 by Eric King
6
votes
This is common in tutorials, and even simple apps where record keys aren't sensitive. But MVC doesn't force you to do it that way... If you don't want to use easily guessable sequential IDs, you don't …
answered Jan 28 '13 by Eric King
3
votes
I think your option number 5 is best, but with some slight tweaking: Your ViewModel should have a property that indicates whether the data can be updated, or not. Perhaps a "CanOverrideLateFine" bool …
answered Feb 18 '12 by Eric King
3
votes
It seems that what you're describing is client-side data-binding, which is one small part of what AngularJS does. (It also does routing, view templating, and a ton of other stuff.) If what you're int …
answered Apr 22 '14 by Eric King
55
votes
Generally, you want your Controllers to do only a few things: Handle the incoming request Delegate the processing to some business object Pass the result of the business processing to the appropriat …
answered Feb 18 '12 by Eric King
5
votes
I also prefer strongly-typed views with dedicated ViewModels. To get around the problem you are seeing I sometimes construct my ViewModels like: public class UserCarsViewModel { public User Use …
answered Dec 18 '14 by Eric King
1
vote
Yes, you should use an ajax call to send the request and receive the response, using the response data to determine whether to display an error message or close the modal dialog. As for where to plac …
answered Mar 19 '15 by Eric King
25
votes
You've got a lot of moving parts in your question, touching on a lot of concepts, but here's my basic advice when it comes to how to think about a mid-to-large scale MVC application: Presentation <-- …
answered Oct 4 '13 by Eric King
1
vote
I write this from the perspective of a long-time .NET developer being pulled inexorably into the client-side JavaScript world, so I assume that I probably share some of the same biases as you. I only …
answered Jun 17 '15 by Eric King