Can a ASP .NET Controller action method take an interface as one of the parameters ?
I would like to have something like:
class MyController
{
[HttpPost]
public ActionResult Action(IMyModel model) {...}
}
Is it possible ? Obviously I would have to tell the framework which concrete implementation of IMyModel that should be instantiated, but how ?