which folder should my partial view be so that it can recognize @model?
I have a main index page, once a person searches for a keyword, I have a viewmodel that filters the DB results and pass it to the partial view below:
Below is my partialview.cshtml for my search results under the "Shared" folder.
@model Namespace.ViewModels.ItemViewModel //<-------------this is not been recognized, @model does not exist in the current context
@if (Model.SearchResults.Count == 0)
<h3 class="text-error">No items matched your search query!</h3>
foreach (var result in Model.NewsList)
// display search results