When I run the project and call view it is returning the following error:
The view at '~/Views/Produto/List.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
View Code:
@using Domain.Entidades
@model IEnumerable<Produto>
@{
ViewBag.Title = "Produtos";
}
@foreach(var p in Model)
{
<div>
<h3>@p.Nome</h3>
@p.Descricao
<h4>@p.Price.ToString("c")</h4>
</div>
}
How to solve?