在
OnPost
处理程序应该返回什么? IActionResult,还有别的吗?也许整个流程都是错误的?
if (ModelState.IsValid) { ... return LocalRedirect(...); } else { ... return Page(); }