我有以下 MVC 4 Razor 代码:
<h4>You currently have @Model.Count() items listed for sale. @Html.ActionLink("Click here to add a new listing", "Create")</h4>
<br />
<table style="visibility: hidden">
....
如果@Model.Count() 为零,我想隐藏表的可见性,如果计数大于零,则表可见。这可能吗?