All Questions
Tagged with asp.net-mvc-web-api asp.net-mvc
15 questions
0
votes
2
answers
748
views
Best practice ASP.NET MVC share code with Web API
I'm trying to develop an ASP.NET MVC-application with an additional Web API.
To reduce code-duplication, I'd like to share as much code as possible, but with the possibility to differentiate between ...
0
votes
0
answers
148
views
Authenticated ASP.NET Core MVC site consuming web API
I have an ASP.NET Core 2.2 MVC site, that uses Facebook as an identity provider. Users can click the login button, they are redirected to Facebook to enter their credentials, and are then redirected ...
0
votes
0
answers
724
views
Running multiple MVC projects: One site
I am developing a "platform", I have an MVC site that will hold all the main data, as well as our generic API, uses Microsoft authentication to create an account, then our employee MVC will add the ...
12
votes
2
answers
19k
views
Should integration tests use database? [closed]
I know that integration tests test parts of project that interaction with each other somehow. And I need to test this interaction. And there is the question:
1)Should these tests use real database ...
2
votes
1
answer
1k
views
Onion Architecture, Project Architecting and Authentication
I am learning ASP.NET MVC & Web API and trying to implement Onion Architecture with Repository Pattern for one of my Test projects as part of my learning.
I have developed single MVC Projects ...
2
votes
2
answers
4k
views
ASP.NET Web API and MVC Architecture for Web Application
We have a single solution Visual Studio web application with multiple projects.
One of the projects (Services project) has APIs for our App clients (Android/iOS). There's separate project for MVC ...
2
votes
2
answers
5k
views
Asp.net mvc web api model validation best practice
I have an annoying code smell in my asp.net core api that I am passing around, and I can't come up with a way to fix.
In an MVC controller action, usually there is a very straight forward logic, at ...
3
votes
1
answer
793
views
Which is more secure for the DB, Web API or MVC with repository pattern & EF?
I am 1 of 3 developers. The other 2 use Web API and angular to build web apps. I prefer ASP MVC with a repository and EF. The stated argument is that a service is more secure when accessing the ...
1
vote
1
answer
546
views
Consume ASP.Net REST API service
I am creating ASP.Net REST API application and stuck on the part where I should consume the REST service.
I am not sure how to find the way let me accomplish the following:
1. I don't want it to be ...
1
vote
1
answer
1k
views
.NET MVC authentication to AngularJS to .NET web API advice needed
So i am inheriting a team and a large project that should have been built with a restful back end. For the time it is only reporting and we all agree to build out a web API (separate project) with ...
2
votes
2
answers
624
views
Where should i put the WebAPI
I've just started the project and I have this sort of parts in my solution
MyApp.Web MVC Web Application
MyApp.Data Class Library
MyApp.Domain Class Library
MyApp.Service Class Library
MyApp.Utility ...
0
votes
1
answer
4k
views
REST API design for associations/aggregation
I am building RESTful API that manages persons and lists.
There can be many List and many Person each with its own set of properties. Person can be in zero or more lists, List can contain zero or more ...
3
votes
1
answer
1k
views
How to manage security of these self hosted web apis, to ensure that the request coming for accessing data is authenticated?
Let's pretend I am going to work on an enterprise application. Say I have 11 modules in the application and I would have to develop Dashboards for every role in the organization for whom I are going ...
16
votes
5
answers
16k
views
Pure Front end JavaScript with Web API versus MVC views with ajax
This was more a discussion for what peoples thoughts are these days on how to split a web application.
I am used to creating an MVC application with all its views and controllers. I would normally ...
0
votes
0
answers
308
views
Using web api or libraries
We currently have 1 domain and 4 subdomains using 5 different applications. We are programming in asp.net and we have 6 different solution project. 5 applications and 1 solution for shared back-end. ...