I have a View (Products.cshtml), a Partial View (FeaturedProducts.cshtml), two Controllers (ProductsController and FeaturedProductsController), two models (Products and FeaturedProducts).
I am rendering Partial View (FeaturedProducts.cshtml) inside View (Products.cshtml). Index action of FeaturedProductsController talks to DB and brings a list back and populates controls in FeaturedProducts.cshtml. I want Index action of Partial View Controller (FeaturedProductsController) to be invoked everytime its rendered.
This is what i am doing in View (Products.cshtml) but it doesnt invoke Index action of FeaturedProductsController. Am i missing something here?
@Html.Partial("FeaturedProducts")