All Questions
Tagged with web-api asp.net-mvc
13 questions
1
vote
1
answer
127
views
ASP.NET MVC and Web API Together vs. ASP.NET MVC with JSON-Returning Action Methods
In an ASP.NET MVC application with views that make AJAX calls for widgets like dropdowns and data grids, is it better to use Web API controllers or regular MVC action methods that return JSON?
The ...
-1
votes
1
answer
58
views
Checking caller has access to an API resource - Design
We have a managers api (/api/managers/-/staff), which will get a list of staff that the currently logged in manager has been granted access to. It is the Managers service.
We also have a staff api (...
0
votes
1
answer
358
views
Using WebAPI as infrastructure layer in ASP.NET MVC
I'm starting a new asp.net mvc core project and for my infrastructure layer I'd like to use WebAPI as this layer should be usable in other solutions besides this one.
I'm not really experienced with ...
1
vote
1
answer
219
views
Should all my asp.net MVC controllers use Web APIs?
The thing that I don't understand is the prioritization between MVC Controllers and Web APIs.
Consider I want to make a website. I can either program to APIs and for the presentational layer, force ...
-1
votes
1
answer
5k
views
Is it good idea to set custom-defined getter and setter in c#?
I tried this way to define custom defined property but I wonder how to handle if any of the dependent properties have null value.
public class ObtainedMarksDetail
{
private decimal? ...
4
votes
1
answer
3k
views
Large controllers in ASP.NET WebAPI, How to organize
I have a large WebApi project with a few dozen controllers. Each controller represents an endpoint prefix, just as a normal MVC project would. For example:
CarsController.cs represents http://api....
1
vote
0
answers
753
views
Are there any performance considerations when reading web.config AppSettings?
I'm writing a REST service with Web Api. One of the actions reads an AppSetting value from the web.config during execution.
I would assume the web.config is loaded into memory, but during high load, ...
1
vote
1
answer
1k
views
Project structure for Web, Api, DAL and ViewModels
I have a ASP .NET WebApi and a Web Project. I'm about to create a DAL class library... Which will be my codefirst/POCO's or possibly edmx files.
I'm wondering do I need to have another class library ...
5
votes
1
answer
802
views
Architecture for Web application to monitor remote servers
So I'm a relatively new programmer, attempting to create a web application (ASP.net) to display the system information (E.G. Status of windows services, disk & resource usage and errors in event ...
0
votes
1
answer
295
views
AngularJS and ASP MVC
We have started to implement AngularJS in our web-applications using ASP MVC.
I am wondering what approach to use for building application in the future.
Keep using our current stategy: Build the ...
0
votes
1
answer
1k
views
Asp.net MVC web application and iOS mobile app
I am currently writing a web application in ASP.NET MVC, so far it is mostly a simple CRUD web app. The database is hosted on the cloud and I am using Entity Framework to interact with it.
I know ...
32
votes
4
answers
37k
views
Why is there no WSDL type support for Web Api?
So I am just getting started with .Net WebApi and one thing that I am noticing straight away is that there is no Contract defining how the API looks and should be consumed (Request/Responses from each ...
0
votes
1
answer
1k
views
Running multiple versions on the same .NET website
I have a website (which is actually mainly a Web API site) and I'd like to be able to simultaneously access multiple versions of it.
What I'm currently doing is creating a new website for each ...