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

Source Error:


Line 50:                 if (item.StartDate.HasValue && item.StartDate >= DateTime.Today && item.Category == "HAYRIDE")
Line 51:                 {
Line 52:                     <div class="Row" data-region="@Html.DisplayFor(modelItem => item.Region),ALL" data-category="@Html.DisplayFor(modelItem => item.Park),ALL">
Line 53:                         <div class="col-sm-2" style="padding-top:25px;">
Line 54:                             <h4>@item.StartDate.Value.ToString("dddd"), </h4>

Source File: D:\inetpub\destateparks\Views\Programs\Hayrides.cshtml    Line: 52






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