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

Source Error:


Line 285: @foreach (var brand in ComparePageModel.BrandList) Line 286: { Line 287: <option value="@brand.BrandId">@brand.Name</option> Line 288: } Line 289: </select>

Source File: C:\Inetpub\vhosts\dynamicstrain.ir\httpdocs\Theme\TS_Tick_rtl\Views\Prdouct\CompareProducts.cshtml    Line: 287






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