{"id":16119,"date":"2015-02-16T12:00:51","date_gmt":"2015-02-16T11:00:51","guid":{"rendered":"http:\/\/infozone.se\/?p=16119"},"modified":"2015-02-16T12:00:51","modified_gmt":"2015-02-16T11:00:51","slug":"binding-abstract-models-asp-net-mvc","status":"publish","type":"post","link":"https:\/\/www.infozone.se\/en\/latest-news\/binding-abstract-models-asp-net-mvc\/","title":{"rendered":"Binding abstract models in ASP.NET MVC"},"content":{"rendered":"

Having trouble binding abstract models in ASP.NET MVC? Hopefully this will help.<\/p>\n

The problem<\/h2>\n

It is common to have abstract models but it can be a bit of struggle to make it work together with MVC\u2019s built in model binder. I guess a lot of people have faced the following yellow screen of death (\u201cCannot create an abstract class\u201d):<\/p>\n

\"\"<\/p>\n

A lot of approaches for this particular issue flourish the web. Such as:<\/p>\n