I am unable to edit the model so would like to do the multiplication inside a view.cshtml.

I've never done multiplication so if someone could point me in the right direction that would be amazing!

 @(Model.UserPrice.DisplayPrice * 0.15)

Thank you!

Edit: Originally I have this bit of code @Html.Raw(Model.UserPrice.DisplayPrice(true,false))

I would like to just multiply that price by 0.15 in the view.cshtml

Related posts

Recent Viewed