Last post Jun 15, 2020 09:37 AM by jiadongm
Jun 14, 2020 08:37 AM|elahi1mahdi|LINK
in startup.cs i use this code to manage errors (404 , 500 , ...)
and its worked correctly when i search a action thats not found and go to error action .
but in controller when a id is not exsist i use this code
but its not work i want when i use NotFound its return to error action
Jun 15, 2020 09:37 AM|jiadongm|LINK
I refer to this
artical, and when I return NotFound(), it will display the custom error page with 404.
If it is not helpful to you, you can share us your error function.