OK – after my last post, in which I’m using Ninject (with the cool website) I got the questions if it can be done with Unity. Of course it does. This post shows how. I’m using Ninject because of the super-slick integration with ASP.NET MVC 3 via NuGet. It gives my a “correct” and easy…
How to handle file uploads in our APIs?! In today’s post, I show the solution available in ASP.net Web API (part of ASP.net MVC 4). Uploading files using ASP.net Web API “DEV Elemar In Portuguese, but a very nice example of using IISExpress.Automation to run integration Web API testing.
Single parameters work fine in either of these RPC scenarios and that’s to be expected. ModelBinding always works against a single object because it maps a model. But what happens when you want to pass multiple parameters? Consider an API Controller method that has a signature like the following:
public string PostAlbum(Album album, string userToken)
Here I am asking to…