Skip to main content

Questions tagged [asp.net-mvc-web-api]

41 votes
3 answers
45k views

I am working on a project in MVC that has mobile application so one thing is clear that we have to use Web API so it can used in mobile application. After creating API when we started to develop Web ...
Ruchir Shah's user avatar
22 votes
2 answers
13k views

I still remember good old days of repositories. But repositories used to grow ugly with time. Then CQRS got mainstream. They were nice, they were a breath of fresh air. But recently I've been asking ...
SiberianGuy's user avatar
  • 4,823
17 votes
3 answers
10k views

I am writing a Rest API and am wondering how best to handle supporting the different versions. By this I don't mean how to define a URI as V2 or V3, but rather how to structure the code given that it'...
Andy Davies's user avatar
16 votes
5 answers
16k views

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 ...
eyeballpaul's user avatar
12 votes
2 answers
19k views

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 ...
NoImagination's user avatar
8 votes
1 answer
8k views

When is it absolutely necessary for a controller to be async? Should all controllers be async or is it bad practice to make all of them async unless it is necessary. Just looking for some general ...
SOfanatic's user avatar
  • 241
8 votes
2 answers
2k views

I am traditionally a desktop app developer, but circumstance has thrust me into the role of doing web client and corresponding REST api logic for a project I am involved in. Unfortunately, I'm a one-...
Geo...'s user avatar
  • 181
8 votes
1 answer
3k views

I'm looking at doing my first mobile development using Mono Touch and Mono for Android. I'd like them to communicate with an ASP.NET MVC 4 site I'm designing. I've worked with WCF and WebAPI in the ...
allen.mn's user avatar
  • 305
7 votes
3 answers
38k views

I have the following interface in my business layer public interface IUserService { void CreateUser(User user); List<User> FindUsersByName(string searchedString); ...
Mykhailo Seniutovych's user avatar
7 votes
1 answer
4k views

I have an application that is beiong split out into a number of services. From a previous question on here, I think that initially JSON/REST is the way to go for communication. Some of my micro ...
Matt's user avatar
  • 253
6 votes
2 answers
13k views

Okay, so here's how I understand IoC and DI in Web API to work when using Castle Windsor. Note, though, that my confidence that I understand it as I should, though, falls somewhere between my ...
B. Clay Shannon-B. Crow Raven's user avatar
6 votes
1 answer
3k views

Background I have a Web API 2 project, without any extension of ASP.NET MVC or ASP.NET projects. The API will only be used to communicate between the server and Windows 8, Windows Phone 8.1 and iOS ...
MikaelKP's user avatar
5 votes
1 answer
8k views

I m working on Web API project, and it is using WebApiConfig.cs file to defined routs for Web API. Web API fold RouteConfig.cs file. I have googled and they say RouteConfig.cs is for MVC routing. It ...
user576510's user avatar
5 votes
1 answer
3k views

I have inherited an API implemented using ASP.NET WebApi 2. The actions on the controllers are all like this: public object Get(long id) { LoginContext loginDetails = GetLoginDetails(); if (...
David Keaveny's user avatar
4 votes
2 answers
2k views

Is it good design to have a controller for each object of your API? I know this is a short question, but it's really a fundamental question that I do not know. Say I have a school or a CRM. That is ...
johnny's user avatar
  • 3,679

15 30 50 per page
1
2 3 4 5 6