I'm working on a ASP.NET web app and the ViewBag, Layout and Model all say The name ViewBag/ Layout/ Model does not exist in current context.
I have seen some solutions for this problem for Microsoft Visual Studio, but I can't find any for Macs.
Does anyone know a solution for this problem in Mac?
I have attached a picture and also written the code out below.
Thank you
@model WebApp.Models.Movie
@{ ViewBag.Title = "Random"; // Read line under ViewBag here Layout = "~/Views/Shared/_Layout.cshtml"; // Red line under the first Layout here }
<h2>@Model.Name</h2>
// Red Line under Model here