ため
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Register(EmployeeRegisterViewModel employeeRegisterModel)
{
if (ModelState.IsValid)
{
IdentityResult result = await _service.CreateEmployeeAccount(employeeRegisterModel);
if (result.Succeeded)
{
return RedirectToAction(nameof(EmployeeController.Index), "Employee");
}
AddErrors(result);
}
return View(employeeRegisterModel);
}
おかげでかみそりの構文を使用する従業員コントローラの私の登録アクションですHtml.BeginForm
@using (Html.BeginForm("ActionName", "ControllerName", FormMethod.Post, new { @class = "ui large form"}))
{
}

またはプレーンHTMLでこの
<form action="/ControllerName/ActionName" asp-action="Register" method="post" role="form" class="ui large form">
....
</form>
は{...} 'あなたのASPを変更 –
' @using(Html.BeginForm( "アクション"、 "コントローラ"、FormMethod.Post))してみます-action to asp-action = "登録/登録" – Rex