I have this view that you need the Audit model but the masterPage has @Html.Partial("/Views/component/panelNavbar.cshtml")
conflict with the Audit model with ConfMaster how to solve this?
Index Audit
@model IEnumerable<CSHLPA.Models.Audit>
@{
Layout = "/Views/component/MasterPage.cshtml";
}
PanelNavbar
@using CSHLPA.Helpers
@model CSHLPA.Models.ConfMaster
<aside id="left-panel" class="left-panel">
<nav class="navbar navbar-expand-sm navbar-default">
//mas codigo....
Complete Error
An exception of type 'System.InvalidOperationException' occurred in System.Web.Mvc.dll but was not controlled in the user's code Additional information: The model item passed into the dictionary is of type 'System.Collections.Generic.List'1 [CSHLPA.Models.Audit]', but this dictionary requires a model item of type 'CSHLPA.Models.ConfMaster'.