I am trying to create an extension to an existing base MVC solution. In my extension, I need to overwrite a view that exists in the base solution. I can't think of an elegant way to do without duplicating most of the code.
My base solution's controller resembles something like this:
public CarController(IService1 service1, IService2 service2, IService3 service3)
{
_service1 = service1;
_service2 = service2;
_service3 = service3;
}
public ActionResult Display()
{
// some business logic here
// build model here
return View(model);
}
All I really want to do is update the HTML of the Display view in the extension solution's NewCarController
. What is the best way to go about it?
Aucun commentaire:
Enregistrer un commentaire