Tagged Questions
1
vote
2answers
1k views
MVC : Does code to save data is session or cache 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 ...
1
vote
0answers
67 views
ASP.NET MVC - Help needed to Improve the code for Drop-Down Box?
I have created the below drop-down to populate a list of cities.
All works fine, but I would like to know the better ways of doing this please. Also, please let me know if it is possible to create ...
3
votes
2answers
255 views
Is it ok to use HttpContext inside View?
I have a pretty common issue: i need to know the name of current user and also name of the current controller so i can highlight/disable some links.
Here's some solutions i found by myself:
1: Get ...
5
votes
2answers
1k views
ASP.NET MVC using an N-Tier Model and DDD
Any comments are welcome. However I'd like to call specific attention to my... interpretation of the N-Tier application architecture and how I'm consuming data. Note that the namespacing and inline ...
1
vote
0answers
304 views
Amazon s3 pass through controller [closed]
Some background, I am building a website that uses amazon s3 to host its image (and other) files.
I required that images displayed on the website look like they come from my site and not from amazon ...
4
votes
0answers
160 views
Is this appropriate way to pass data from presentation to application layer?
What is the best practices to pass data from presentation to application layer?
Currently I have something like this:
in presentation layer:
the controller:
...
7
votes
1answer
667 views
Efficient way to deal with maintaining Many:Many relationships in EF Code-First
(I posed this in SO, but since it's a kind of code-review question, it's now here too)
I've got this all working, but it seems to be quite long winded, and I thought I'd post here and see if I'm ...
4
votes
4answers
362 views
Is it overkill to create a Model for this?
Email<input type="text" id="email" /><br />
Re-enter Email<input type="text" id="confirm-email" />
I'm thinking that I want a model so that I ...
4
votes
3answers
554 views
Not feeling 100% about my Controller design.
Basically, I'm uploading an excel file and parsing the information then displaying what was parsed in a view.
...