error while executing view asp.net mvc

0

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?

    
asked by anonymous 07.07.2016 / 06:26

0 answers