I've got a model like this:
public class HomeViewModel
{
public IEnumerable<NewsItem> NewsItems { get; set; }
public decimal TotalSales { get; set; }
public IEnumerable<SalesOrderHeader> SalesInformation { get; set; }
}
And in the View I want to do this:
<p>@Html.Display(Model.TotalSales)</p>
But I'm running into this error:
HomeViewModel does not contain a definition for Display"
Which is odd because it should be the Html type that has Display.
What is the correct syntax for what I'm trying to achieve?