Hi,
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 .
app.UseStatusCodePagesWithReExecute("/"+CultureInfo.CurrentCulture.Name+"/errors/{0}");
but in controller when a id is not exsist i use this code
return NotFound();
but its not work i want when i use NotFound its return to error action