# ViewModel issue and Strange Rendering

**URL:** <https://forum.codewithmosh.com/t/viewmodel-issue-and-strange-rendering/11011>\
**Category:** ASP.NET MVC\
**Created:** [March 2, 2022, 3:38am UTC](https://forum.codewithmosh.com/t/viewmodel-issue-and-strange-rendering/11011 "2022-03-02T03:38:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![withinbounds](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@withinbounds](https://forum.codewithmosh.com/u/withinbounds)\
**Post date:** [March 2, 2022, 3:38am UTC](https://forum.codewithmosh.com/t/viewmodel-issue-and-strange-rendering/11011/1 "2022-03-02T03:38:32Z")

</div>

This is from the lecture on ViewModels.

```auto
@Model Vidly.ViewModels.RandomViewModel
 
@{
    ViewBag.Title = "Random";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Model.Movie.Name</h2>

<ul>
    @foreach (var customer in Model.Customers)
    {
        <li>@customer.Name</li>
    }
</ul>

```

Am I missing something from this code? None of the intellisense shows, although the code does work. I am using Visual Studio 2019.

Additionally, my page is rendering out some strange text in the RenderBody:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/cd0af938afff6e82d77b63bc3fb8c1616ca91bd9.png)

The text "Vidly.ViewModels.RandomViewModel " appears twice below the solid black line, and I have no idea where this is coming from.

Any assistance is welcome.

---

<div class="post-metadata">

**Author:** ![Jamie](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@Jamie](https://forum.codewithmosh.com/u/Jamie)\
**Post date:** [March 17, 2022, 2:20pm UTC](https://forum.codewithmosh.com/t/viewmodel-issue-and-strange-rendering/11011/2 "2022-03-17T14:20:30Z")

</div>

Seems like you need to look at the property to see if you have selected a property or along those lines.

You could compare it to the version found on GitHub to see what you have missed [GitHub - mosh-hamedani/vidly-mvc-5](https://github.com/mosh-hamedani/vidly-mvc-5)
