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: CS0023: Operator '?' cannot be applied to operand of type 'int'

Source Error:


Line 20: <!--Start Hero Portfolio Section-->
Line 21: @{
Line 22:     var imgs = Model.Content.GetPropertyValue<int>("HeroPortfolioItem")?.FirstOrDefault();
Line 23: 
Line 24:     <section class="portfolio-intro" style="background-image: url(@imgs.Url?format=webp);background-color:#@Model.Content.GetPropertyValue("color");background-repeat: no-repeat;background-position:center center 5px;background-size:cover;">

Source File: D:\WEB\double\uat.double.pt\wwwroot\Views\PortfolioPage.cshtml    Line: 22






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