C# asp.mvc返回错误的视图

C# asp.mvc返回错误的视图,c#,asp.net,asp.net-mvc,razor,C#,Asp.net,Asp.net Mvc,Razor,我有这样的代码: public ActionResult Verification(string quarter, long employeeId) { var consents = VerificationQueries.ClientsConsents(employeeId, CurrentSession, report.Quarter); var mifidsFund = VerificationQueries.ClientsMifidsFund(employeeId, Cu

我有这样的代码:

public ActionResult Verification(string quarter, long employeeId)
{
    var consents = VerificationQueries.ClientsConsents(employeeId, CurrentSession, report.Quarter);
    var mifidsFund = VerificationQueries.ClientsMifidsFund(employeeId, CurrentSession, report.Quarter);
    var mifidsMak = VerificationQueries.ClientsMifidsMak(employeeId, CurrentSession, report.Quarter);

    var model = new VerificationViewModel(report, consents, mifidsFund, mifidsMak);
    if (quarter == "12016")
    {
        return View("Verification_12016", model);
    }
    else
    {
        return View("Verification", model);
    }
}
四分之一可以有两个值:“12016”和“22016”。 在调试器中,服务器返回两个视图,但浏览器始终呈现“Verification_12016”视图。 有什么问题

编辑:
我更改了“Verification_12016”和“Verification_22016”的视图名称,工作正常。但有什么问题,我不能使用“Verification”视图?

您正在使用输出缓存吗?您有[OutputCache]吗已为此操作或控制器启用?如果忽略四分之一参数,则会导致启用。如何检查OutputCache是否已启用?Id在控制器中没有任何类似的属性。是否已逐步执行以确保两个代码路径均成功运行?是。我在调试器中逐步执行了两个代码路径。现在我更改了:Verific的视图名称“验证”视图名有什么问题?