Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'TiendaOnline.Models.Productos' does not contain a definition for 'Existencias' and no extension method 'Existencias' accepting a first argument of type 'TiendaOnline.Models.Productos' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 60:                             @if (ViewBag.EnStock == "Si")
Line 61:                             {
Line 62:                                 if (producto.Existencias.Sum(e => e.Existencia) > 0)
Line 63:                                 {
Line 64:                                     <span class="text-success">En Stock</span>

Source File: c:\inetpub\wwwroot\Makai\Views\Home\_ListadoProductos.cshtml    Line: 62






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0