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

Source Error:


Line 36:                                     <p>@item.Value.Version.Product[Model.IdLanguage].Title</p>
Line 37:                                     <p data-responsive="tablet-desktop">@ApplicationLib.Resources.Language.Reference: @(String.IsNullOrEmpty(item.Value.Version.Reference) ? item.Value.Version.Product.Reference : item.Value.Version.Reference)</p>
Line 38:                                     @if (item.Value.Version.IdProductColor.HasValue)
Line 39:                                     {
Line 40:                                         <div class="desc">

Source File: c:\inetpub\vhosts\agenciacriativa.pt\tecniferti.com\Views\Basket\Detail.cshtml    Line: 38






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