I have a small isuse regarding an interface.
Consider this code:
[HttpPost()]
public void Update(IAuctionItem item) {
RedirectToAction("List");
}
Whenever I call this I get an exception saying I can’t create an instance of type which i totally correct. But is there a way of telling what the interface should map to without actually using the concrete type ?
You can do this, by providing MVC with a custom mapper telling it how to map to the interface types.
See this previous question, and this article about Model Binders.