﻿@using Orchard.ContentManagement.MetaData.Models
@{
    var containerId = (int) Model.ContainerId;
    var itemContentTypes = (IList<ContentTypeDefinition>)Model.ItemContentTypes;
}
<div class="item-properties actions">
    <p>
        @Html.ActionLink(T("{0} Properties", Html.Raw((string)Model.ContainerDisplayName)).Text, "Edit", new { Area = "Contents", Id = (int)Model.ContainerId, ReturnUrl = Html.ViewContext.HttpContext.Request.RawUrl })
    </p>
</div>
<div class="manage">
    @if (itemContentTypes.Any()) {
        foreach (var contentType in itemContentTypes) {
        @Html.ActionLink(T("New {0}", Html.Raw(contentType.DisplayName)).Text, "Create", "Admin", new { area = "Contents", id = contentType.Name, containerId }, new { @class = "button primaryAction create-content" })
        }
    }
    else {
        @Html.ActionLink(T("New Content").ToString(), "Create", "Admin", new { area = "Contents", containerId }, new { @class = "button primaryAction create-content" })
    }
    <a id="chooseItems" href="#" class="button primaryAction">@T("Choose Items")</a>
</div>

﻿@using Orchard.ContentManagement.MetaData.Models
@{
    var containerId = (int) Model.ContainerId;
    var itemContentTypes = (IList<ContentTypeDefinition>)Model.ItemContentTypes;
}
<div class="item-properties actions">
    <p>
        @Html.ActionLink(T("{0} Properties", (string)Model.ContainerDisplayName), "Edit", new { Area = "Contents", Id = (int)Model.ContainerId, ReturnUrl = Html.ViewContext.HttpContext.Request.RawUrl })
    </p>
</div>
<div class="manage">
    @if (itemContentTypes.Any()) {
        foreach (var contentType in itemContentTypes) {
        @Html.ActionLink(T("New {0}", contentType.DisplayName), "Create", "Admin", new { area = "Contents", id = contentType.Name, containerId }, new { @class = "button primaryAction create-content" })
        }
    }
    else {
        @Html.ActionLink(T("New Content"), "Create", "Admin", new { area = "Contents", containerId }, new { @class = "button primaryAction create-content" })
    }
    <a id="chooseItems" href="#" class="button primaryAction">@T("Choose Items")</a>
</div>

Use new ActionLink extension method.
Use new ActionLink extension method.
