Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Enable creating a ViewResult without requiring a view engine  #617

@puncsky

Description

@puncsky

After "#597 Remove ActionResultHelper", helpers in ActionResultHelper are merged to Controller.cs.

We find that actually return new ViewResult(_serviceProvider, _viewEngine) in public ViewResult View(string view, object model) is useless. And return new ViewResult() is enough because ViewResult itself has DI on its ctor and the services can be reached through Context.ApplicationServices.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions