我的页面有一个搜索框,其中有几个单选按钮。根据选择的单选按钮将取决于显示的视图。
但是,我不知道如何返回视图。
我的代码是
 public ActionResult Index(string jobType)
    {
        if (jobType.ToLower() == "this")
            CandidateResults();
        else
            JobResults();
    }
    private ActionResult CandidateResults()
    {
        var model = //logic
        return View(model);
    }
    private ActionResult JobResults()
    {
        var model = //logic
        return View(model);
    }
但这不会在屏幕上显示任何内容(白页)。这是有道理的,但我不想返回索引,我想返回一个新页面(称为 JobResults 或 Candidates)并为这两个新页面创建一个视图,但是当我右键单击我的方法时(JobResults() 或Candidates()) 我没有添加视图的选项。
在这个阶段我迷路了,任何人都可以提供建议。