@model List @if (Model != null && Model.Count > 0) { foreach (var id in Model) { @ViewData.Get(id) } }