http://localhost:50034/Admin/Delete/723
Always needs this parameter to perform the action, however, if you go to the URL without the parameter, an exception occurs. How do you handle this and redirect back to the main page without doing anything?
Thanks.
I am not sure what you mean, do you mean that the url http://localhost:50034/Admin/Delete/ is generating an exception?
Try setting the id parameter as nullable, like this: