Код: Выделить всё
public class AccountController
{
[HttpGet]
[AllowAnonymous]
public async Task Login(string returnUrl = null)
{
// ...
}
[HttpGet]
[AllowAnonymous]
public async Task ChangePassword(string returnUrl = null)
{
// ...
}
}
- сопоставлен с маршрутом /Login
Код: Выделить всё
AccountController.Login - сопоставлен с маршрутом /ChangePassword
Код: Выделить всё
AccountController.ChangePassword
Код: Выделить всё
AccountController.Login -> /en/login, /it/login
AccountController.ChangePassword -> /en/change-password, /it/cambia-password
Подробнее здесь: https://stackoverflow.com/questions/787 ... p-net-core
Мобильная версия