1
vote
1answer
60 views

REST-ish API Account Controller - how's it look?

I still have to implement api keys for client auth, but so far this is what I have for users. This was built using WebAPI and SimpleMembership with Forms Auth: Is Authenticated: public class ...
0
votes
0answers
38 views

Data Access Objects and Entity Relationships

What is the proper way to structure DTO's for my tables? Three of my tables are Documents which contains Pages and Fontstyles. I am creating an EditDocument view in which I will edit these (and more) ...
6
votes
1answer
103 views

passing a selectlist to the view based on database models from viewmodel is a MVC anti-pattern?

We need to select a model reference from a view. To do this we need to add a dropdownlistfor. this is based on a selectlist containing database models. passing selectlists by viewbag this solves our ...
1
vote
0answers
24 views

PBKDF2 Authorization first go, is this optimal?

I've discovered that using hashed passwords with salts is much better idea than MD5/SHA256 so I'm not hashing them with PBKDF2. However I'm wondering if this is correct approach to authorize my user. ...
0
votes
2answers
157 views

How could I make my controller a little less hideous?

I have a controller. It functions as follows: A user imports a file and decides whether the files contents contain new entries to be placed into a database, or existing entries entries to be updated. ...
5
votes
1answer
467 views

ListBox for a many to many relationship

I'm looking for a good and easy to use solution for creating MultiSelectLists in MVC for many to many relationships. I have this following example code and it works fine, but it just takes a lot of ...
5
votes
2answers
863 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
2answers
993 views

Need help in MVC Winform example project to add a record into the DB [closed]

I want to learn MVC pattern using winforms and I have read some tutorial to understand. Now, i'm working on my own example to just add a customer records in a database using MVC pattern. The ...
1
vote
0answers
172 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
2answers
902 views

Best practices for decouple classes in C#

So this is a lot more confusing than it has to be (I could just stick all of this in the main class with the ui event handlers) but I wanted to decouple this class for learning purposes. Basic ...
1
vote
2answers
1k views

Refactor Windows Form Code to follow MVC

I started an open source Markdown editor using C#. I'm a huge fan of the MVC pattern however I am having trouble refactoring my back-end form code. It's getting pretty long and was wondering if any ...
3
votes
2answers
408 views

Passing HTML back inside a JSON object

First question on here. I'm working on a piece of code in my MVC3 application and I'm struggling to decide if what I plan to do is a bad idea or not. I have a snippet of javascript that calls an mvc ...
1
vote
2answers
271 views

A faster way to look up for a url in a WebRequest/WebResponse html

What I'm trying to do here is get an RSS feed and append an Enclosure XML node to each item, which has a link to a video file (wmv). Try the below code with url = ...
3
votes
3answers
497 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 ...