但當id傳入非數字時,報錯,生成的內容是這樣:模型:錯誤提示:The value 'sfsf' is not valid. 這句在哪里修改?在模型中試了都不對啊。
.net core 2.1 參數驗證
慕尼黑8549860
2018-08-21 10:09:54