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

Source Error:


Line 62:                         @if (Model.BookDiscount > 0)
Line 63:                         {
Line 64:                             <span style="color: red; text-decoration: line-through; margin-left:15%;"> قیمت اصلی  : @Model.BookPrice.ToString("N0")  </span>
Line 65:                             <span> قیمت با تخفیف  : @Doctor_Ketab_Web.Models.extentions.CalculatePriceWithDiscount(Model.BookPrice, Model.BookDiscount).ToString("N0")  </span>
Line 66:                         }

Source File: C:\Inetpub\vhosts\doktorketab.com\httpdocs\Views\Home\ViewBook.cshtml    Line: 64






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