I am currently doing an MVC application in .NET.
As for now, within my _Layout.cshtml
page i have a login modal that is made with bootstrap. (I want to use a specific model with this modal)
The thing is, i have already passed a model to my _Layout.cshtml
page, which means that i need to separate my modal from the _Layout.cshtml
page to another view, in which i there will be able to invoke my model.
This leads me to my question:
How do i separate my modal to another view, and still be able to call it in my _Layout.
Assumption: I could just toss my modal to my index view, but that would just move the problem to my index view instead.