1
vote
2answers
38 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
34 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
86 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
874 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
174 views

Amazon s3 pass through controller

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 ...
3
votes
0answers
127 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: public class ProductController : ...
3
votes
4answers
307 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 can have this partial page strongly ...
3
votes
3answers
499 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. using System.Data; using System.Data.OleDb; using System.Web; using System.Web.Mvc; using ...