How do I access the ModelState from an ActionFilter?

前端 未结 1 721
执念已碎
执念已碎 2020-12-24 10:58

I\'m building an ActionFilter to reuse some code for a simple spam block - basically what I do is that I have a Html Helper method that renders an

1条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 11:47

    That would be by: filterContext.Controller.ViewData.ModelState

    0 讨论(0)
提交回复
热议问题