public void Foo(Action next, string foo) { Response.Render("ViewTest.cshtml", new TestModel {Title = foo}, (ex) => next()); }