关于[Optional Parameters in Razor Pages Routing]的摘要:
Razor Pages routing is based on attribute routing and is very powerful. Parameters provide a way of passing arbitrary data to a page via the URL. Optional parameters allow URLs to matched to routes even if no parameter value is passed. Things can get a bit complicated if you want to permit multiple optional parameters.
原文地址: https://www.mikesdotnetting.com/article/339/optional-parameters-in-razor-pages-routing