Tambahkan kelas CSS berdasarkan nilai model pisau cukur
<div class="details @(@Model.Details.Count > 0 ? "show" : "hide")">
Davidire
<div class="details @(@Model.Details.Count > 0 ? "show" : "hide")">