How to retrieve SQL error message and display it with ASP.NET Core MVC?

前端 未结 0 1590
星月不相逢
星月不相逢 2021-01-13 05:14

I want to show my SQL Server error to the user. When a method returns a value there is no problem with this code.

But when there is no record I want to give an error

相关标签:
回答
  • 消灭零回复
提交回复
热议问题