Top "Asp.net-web-api" questions

ASP.

How to set up a Web API controller for multipart/form-data

I am trying to figure this out. I was not getting any useful error messages with my code so I …

c# asp.net-web-api multipartform-data
Error sending json in POST to web API service

I'm creating a web service using Web API. I implemented a simple class public class ActivityResult { public String code; public …

c# asp.net .net json asp.net-web-api
How to add/update child entities when updating a parent entity in EF

The two entities are one-to-many relationship (built by code first fluent api). public class Parent { public Parent() { this.Children = new …

c# asp.net-mvc entity-framework asp.net-web-api
Optional Parameters in Web Api Attribute Routing

I want to handle POST of the following API-Call: /v1/location/deviceid/appid Additional Parameter are coming from the Post-Body. …

c# asp.net asp.net-web-api asp.net-web-api-routing
All ASP.NET Web API controllers return 404

I'm trying to get an API Controller to work inside an ASP.NET MVC 4 web app. However, every request results …

asp.net-mvc asp.net-mvc-4 asp.net-web-api
Entity Framework change connection at runtime

I have a web API project which references my model and DAL assemblies. The user is presented with a login …

c# entity-framework asp.net-web-api connection-string
How to support HTTP OPTIONS verb in ASP.NET MVC/WebAPI application

I've setup an ASP.NET web application starting with a MVC 4/Web API template. It seems as though things are …

asp.net ajax asp.net-web-api
Read HttpContent in WebApi controller

How can I read the contents on the PUT request in MVC webApi controller action. [HttpPut] public HttpResponseMessage Put(int …

c# asp.net-mvc asp.net-web-api httpcontent
OWIN Security - How to Implement OAuth2 Refresh Tokens

I am using the Web Api 2 template that comes with Visual Studio 2013 has some OWIN middleware to do User Authentication …

c# asp.net-web-api oauth-2.0 asp.net-identity owin
User Authentication in ASP.NET Web API

This topic has been incredibly confusing for me. I am a rookie in HTTP apps but need to develop an …

asp.net asp.net-web-api