Can abstract class be a parameter in a controller's action?

前端 未结 5 1734
既然无缘
既然无缘 2020-12-31 03:53

I have an Action function inside of a Controller, which is being called with AJAX. That Action is taking in 1 parameter. Client side, I construct a JSON object which shoul

5条回答
  •  余生分开走
    2020-12-31 04:27

    Nope - it makes no sense to have attempt to deserialize JSON to an object of an abstract class. Can't you make it a proper class?

提交回复
热议问题