How to figure out which key of ModelState has error

后端 未结 2 1212
遥遥无期
遥遥无期 2020-11-28 14:28

How do I figure out which of the keys in ModelState that contains an error when ModelState.IsValid is false? Usually I would just hover the mouse thru the ModelState.Values

2条回答
提交回复
热议问题