This is from the lecture on ViewModels.
@Model Vidly.ViewModels.RandomViewModel
@{
ViewBag.Title = "Random";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>@Model.Movie.Name</h2>
<ul>
@foreach (var customer in Model.Customers)
{
<li>@customer.Name</li>
}
</ul>
Am I missing something from this code? None of the intellisense shows, although the code does work. I am using Visual Studio 2019.
Additionally, my page is rendering out some strange text in the RenderBody:
The text "Vidly.ViewModels.RandomViewModel " appears twice below the solid black line, and I have no idea where this is coming from.
Any assistance is welcome.