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: CS0266: Cannot implicitly convert type 'int?' to 'int'. An explicit conversion exists (are you missing a cast?)

Source Error:


Line 8:      var SchoolDetails = obj._getSchoolConfiguration(data);
Line 9:  
Line 10:     int School_Id = (SchoolDetails == null ? 1081 : SchoolDetails.School_Id);
Line 11:     int Theme_Id = (SchoolDetails == null || SchoolDetails.Theme_Id == 0 ? 2 : SchoolDetails.Theme_Id);
Line 12: 

Source File: c:\inetpub\wwwroot\erp.schoolaura.com\Views\home\teacher.cshtml    Line: 10






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