Skip to main content

Questions tagged [asp.net-mvc]

Model-View-Controller for the ASP.NET framework

Filter by
Sorted by
Tagged with
23 votes
3 answers
13k views

Returning status codes from business layer

This is what I've been doing so far in my business layer to return error messages to the user. ...
ThunderDev's user avatar
47 votes
2 answers
101k views

Unit of Work and Repository with Entity Framework 6

Based on the reply of this question I have created the following code. I need to check whether it's good or not. Here is my entity class: ...
Jalpesh Vadgama's user avatar
14 votes
2 answers
5k views

Repository and Controller tests

Lately I have been researching how to best unit test an EF repository and given a properly tested repository, what to test in the controller. My research did not reveal many sound examples or ...
Caster Troy's user avatar
5 votes
2 answers
386 views

Getting list of daily team goals

The old code I had before was atrociously slow but after some advice and research I was able to take a 2-5 minutes run time down to about 5-30 seconds. That is acceptable, but still looking to have ...
James Wilson's user avatar
4 votes
1 answer
16k views

Custom HttpClient Wrapper

I need to wrap httpClient because I'm using a custom token provider. I will use this code with asp.net mvc to communicate with our webApi2 server. ( Using webApi2 with directly from ui with angularjs ...
Lost_In_Library's user avatar
3 votes
3 answers
6k views

ASP.NET core proper way to work with the repository pattern

I am currently working on my first ASP.NET Core MVC project with a repository pattern. I have gotten it to work but I wonder if there is a better way to solve this. In this case I have an ...
Johan Vergeer's user avatar
3 votes
1 answer
7k views

Run stored procedure from repository using EF

I need to dynamically call a stored procedures from my repository, and here is a my implementation: ...
Roman Marusyk's user avatar
3 votes
0 answers
108 views

Multitenant app authorization

Role based security does not work for me well in a multitenant app, as I need to query DB to decide on permission allowance. Here is the solution I came to. All implementations of this interface will ...
Dmitry Nogin's user avatar
  • 6,131
2 votes
0 answers
82 views

Authentication terminology

Below comes a Value Object to represent UserId in ASP.NET application. It implements Value Identity, so equality is defined by matching of the state calculated at ...
Dmitry Nogin's user avatar
  • 6,131
0 votes
2 answers
389 views

Common Implementation for Sending mail based on time

I have created one Background service that execute after every 5 minutes and this service used for sending email after 6 hour,24 hour and 48 hour for user booking order is not confirmed. for that i ...
Lalji Dhameliya's user avatar