0
我有了一個屬性叫做標題,我想在索引視圖呈現在剃刀如何從Razor視圖
CLASS
public class vmAppointment
{
public Appointment Appointment { get; private set; }
public IEnumerable<SelectListItem> EmployeeList { get; set; }
public string Title { get; set; }
}
索引視圖視圖模型類引用屬性在視圖模型
@model IEnumerable<JJ.ViewModels.vmAppointment>
<h2>@Model.Title</h2> WRONG! how can i reference my property here?
我該如何渲染視圖中的屬性值?