Reputation: 4862
I like to have a controller for multiple views. The structure should look like these.
Is it possible or anybody have an good idea too avoid view names like AddQuantityProduct.cshtml
, AddMatrixProduct.cshtml
.
Upvotes: 0
Views: 25
Reputation: 3597
Although I don't think it's a good idea to blow your controller up with so much functionality, you can easily do that by specifying the full path of the view in each action.
Example:
public ActionResult Foo()
{
return View("~/Views/Products/Add/MatrixProduct.cshtml");
}
Upvotes: 1