{"id":16134,"date":"2015-02-16T12:04:53","date_gmt":"2015-02-16T11:04:53","guid":{"rendered":"http:\/\/infozone.se\/?p=16134"},"modified":"2015-02-16T12:04:53","modified_gmt":"2015-02-16T11:04:53","slug":"binding-abstract-models-asp-net-mvc-2","status":"publish","type":"post","link":"https:\/\/www.infozone.se\/en\/latest-news\/binding-abstract-models-asp-net-mvc-2\/","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

\"Cannot<\/a><\/p>\n

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