I want to redirect from a ViewResult
, so that I can display a specific product detail when the search result is 1
instead of the product list page.
Other pages said to change the ViewResult
to an ActionResult
and to use the RedirectToAction
. But my problem is that my controller inherits from a third party control and my search method is set to override the same third party control method, which is a ViewResult
.
I am wondering if anyone has some suggestions on what I could do, if there is another way to redirect from a ViewResult
or if there is another way to handle the override of the third party controls search method to be an ActionResult
.