**Index.cshtml**

```
<div class="news_content_container">
    @Html.Action("_AddImagesToNews", "PostImages")
</div>

```

**\_AddImagesToNews.cshtml**

```
<div>
    @using (Html.BeginForm("_AddImagesToNews", "PostImages", FormMethod.Post, new { id = "form_post_images" }))
    {
        @Html.Hidden("Id", (int)ViewBag.newsId)
        <div class="editor-label">
            <input type="file" name="Files" id="Files" multiple="multiple" />
        </div>

        <div class="submit-field">
            <input type="submit" value="Ekle" class="button_gray_small" />
        </div>
    }
</div>
<div class="images_content_container">
    @Html.Partial("_PostImages", Model.ToList())
</div>

```

**\_PostImages.schtml**

```
@model IEnumerable<NewsCMS.DAL.EDM.PostImages>

@foreach (var item in Model)
{
    <img src="~/@(item.MiddleImageUrl)" alt="@(item.Posts.Title)" />
}

```

**controller actions**

```
public ActionResult _AddImagesToNews(int Id)
{
    using (NewsCMSEntities entity = new NewsCMSEntities())
    {
        ViewBag.newsId = Id;
        return PartialView(entity.PostImages.Where(x => x.PostId == Id).ToList());
    }
}

```

When view is loading, I get error as title. I cant find the reason. If I write `@Model.Count()` in **\_PostImages.cshtml** it shows the correct value with no error. 

What am I missing? 

Thanks...