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: 'DotOrg.Robur.Db.Model.Category' does not contain a definition for 'GenerateUrl' and no extension method 'GenerateUrl' accepting a first argument of type 'DotOrg.Robur.Db.Model.Category' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 36:                                     @foreach (var item in study.Categories.ToList())
Line 37:                                     {
Line 38:                                         <li><a href="@item.GenerateUrl()">@item.Name</a></li>
Line 39:                                     }
Line 40:                                     @foreach (var item in study.Products.ToList())

Source File: c:\inetpub\vhosts\u1292427.plsk.regruhosting.ru\httpdocs\Views\Suppliers\CaseStudy.cshtml    Line: 38






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