相关疑难解决方法(0)

测试RedirectToAction的最佳方法是什么?

我有以下情况

if (_ldapAuthentication.IsAuthenticated (Domain, login.username, login.PassWord))
{
    _ldapAuthentication.LogOn (indexViewModel.UserName, false);
    _authenticationService.LimpaTentativas (login.username);
    return RedirectToAction ("Index", "Main");
}
Run Code Online (Sandbox Code Playgroud)

如果是真的,它会重定向到另一个页面..最好做一个测试?

asp.net-mvc

11
推荐指数
2
解决办法
6654
查看次数

标签 统计

asp.net-mvc ×1