正しい構文が見つからないものがあります。
/Views/Shared/EditorTemplates/Component.cshtml
@model Website.Models.Component
<div class="editor-field">
@if (x => x.Name == "")
{
@Html.EditorFor(x => x.Name)
<button class="create">New</button>
}
else
{
@Html.DisplayFor(x => x.Name)
<button class="delete" value="@Model.Id">X</button>
}
</div>
意図が明確であることを願っています...どうすればそこにたどり着きますか(この種のことをグーグルで検索するのは難しいです)?