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

Source Error:


Line 146:                                        <li>
Line 147:                                            <h3><a href="@Url.Content("~/companies/" + @covernewsitem.cdscompanyid)">@(covernewsitem.companyname)</a></h3>
Line 148:                                            @foreach (string BA in (covernewsitem.lstBAs).Take(2))
Line 149:                                            {
Line 150:                                                <p class="date">

Source File: f:\WEB\ArabianBusinessCommunity\Views\Home\NewsDetailsView.cshtml    Line: 148






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