Questions tagged [asp.net-mvc]
Model-View-Controller for the ASP.NET framework
11
questions
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.
...
47
votes
2
answers
100k
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:
...
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 ...
5
votes
2
answers
385
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 ...
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 ...
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 ...
3
votes
0
answers
107
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 ...
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:
...
2
votes
1
answer
95
views
Add colour tags on click
I have implemented some extra functionality for the tag-it JavaScript plugin, where I need an option where availableTags are displayed in one box, and the user can ...
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 ...
0
votes
2
answers
388
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 ...