converting an interface to a type in MVC
- by danielovich
Hi.
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 ?