Model-View-Controller for the ASP.NET framework

learn more… | top users | synonyms

1
vote
2answers
76 views

Converting Anonymous To Dynamic [on hold]

I have a extension method like following that takes Anonymous type objects and returns it after converting into ExpandoObject which falls under ...
5
votes
1answer
102 views

MVC 5 & EF 6 - Repository & Unit of Work Pattern

I have been looking through Code Review on the subject of Unit of Work and Repository patterns and realised that my implementation appears to provide very similar functionality but in reverse class ...
2
votes
1answer
105 views

How should I name a mapper or manager?

Recently I was reading a book called Clean Code by Robert C. Martin. There is a chapter called Meaningful Names that started me thinking if I was doing this right. I know there isn't one good way to ...
6
votes
2answers
262 views

Refactoring Methods With Conditionals

I have always suffered with too many conditionals in some of my methods. The following is a pseudocode/skeleton of one of my method like that: ...
4
votes
1answer
146 views

Concerned with Enums, JSON, and ASP.NET MVC

I am writing an application that uses ASP.NET MVC for its front end, and for the back end, it uses RavenDB to store data. This ...
4
votes
1answer
56 views

Avoiding redundant code in MVC view page

Based on the true condition, I am making some operations. But I want to simplify the below HTML code in a better way. ...
4
votes
1answer
150 views

How can I simplify these if/else clauses?

I have a few if, else-if, else clauses. The only ...
2
votes
1answer
108 views

Where to put common method used in controllers that calls service layer?

I have an asp.net mvc5 web application using the repository pattern, and I have several controllers that need to call my _loggingService (queries audit logs) to get the last updated information for ...
2
votes
2answers
73 views

How to declutter dependencies?

I'm running into a problem with my code in a ASP.NET MVC application. Maybe it's not a problem and I'm just being paranoid, but it seems like a problem to me (might be because I've just read the book ...
4
votes
1answer
584 views

Entity Framework, code-first repository pattern review. Where to validate?

I've been iterating on my repository pattern implementation over the course of the past 4-5 months. In my new projects I choose to use this pattern and I try to improve upon what I learned in previous ...
5
votes
2answers
338 views

Building a better Data Access Layer Class

Since I am new to MVC and the Entity Framework, I have been struggling to grasp the concept of creating useful Data and Service layers. I have come across a scenario where I believe my code has become ...
4
votes
1answer
88 views

How can i reduce this code?

I have a problem. This code works great, but i think it can be reduced. ...
0
votes
3answers
81 views

Task send options: Send Now, Send Later, Repeat (viewmodel)

I'm writing a code for my application: you can create a task, and you can choose the moment when you want to send this task (to some kind of user): Send now Send later Repeat You can select from ...