The model item passed into the dictionary is of type List`1 but this dictionary requires a model item of type IEnumerable
<p>thanks in advance for helping. </p>

<p>New to MVC so is probably easy to answer. I'm getting this error and have no idea what any of it means. This is my code:</p>

<p><strong>My view:</strong></p>

<pre><code>@model carBayWebsite.Models.WishList

@{
    ViewBag.Title = "Create";
}

&lt;h2&gt;Create&lt;/h2&gt;


@using (Html.BeginForm("Create",
  "WishLists",
  FormMethod.Post,
  new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()

&lt;div class="form-horizontal"&gt;
    &lt;h4&gt;Add to WishList?&lt;/h4&gt;
    &lt;hr /&gt;
    &lt;p&gt;Are you sure you want to add this to your Wish List?&lt;/p&gt;
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })

    &lt;div class="form-group"&gt;
        &lt;div class="col-md-offset-2 col-md-10"&gt;
            @Html.HiddenFor(m =&gt; m.AdvertId)
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
        &lt;div class="col-md-offset-2 col-md-10"&gt;
            @Html.HiddenFor(m =&gt; m.AdvertId)
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
        &lt;div class="col-md-offset-2 col-md-10"&gt;
            &lt;input type="submit" value="Add" class="btn btn-default"/&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
}

&lt;div&gt;
@Html.ActionLink("Back to List", "Index")
&lt;/div&gt;

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
</code></pre>

<p><strong>My Controller</strong></p>

<pre><code>public class WishListsController : Controller
{
    private Entities2 db = new Entities2();

    public ActionResult Index()
    {
        string userName = User.Identity.GetUserName();
        var wishlist = from ads in db.Adverts
                      join wish in db.WishLists
                      on ads.AdvertId equals wish.AdvertId
                      where wish.UserId.Contains(userName)
                      select wish;

        return View(wishlist.ToList());
    }

    // GET: WishLists/Details/5
    public ActionResult Details(int? id)
    {
        if (id == null)
        {
            return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
        }
        WishList wishList = db.WishLists.Find(id);
        if (wishList == null)
        {
            return HttpNotFound();
        }
        return View(wishList);
    }

    public ActionResult Create(int? id)
    {
        if (id == null)
        {
            return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
        }
        else
        { 
        string usID = User.Identity.GetUserId().ToString();
        int adID = Convert.ToInt32(id);
        WishList wishList = db.WishLists.Find(id);
        ViewBag.userId = usID;
        ViewBag.advertId = adID;
            return View(wishList);
        }




    }

    // POST: WishLists/Edit/5
    // To protect from overposting attacks, please enable the specific properties you want to bind to, for 
    // more details see http://go.microsoft.com/fwlink/?LinkId=317598.
    [HttpPost]
    [ValidateAntiForgeryToken]
    public ActionResult Create(WishList wishList)
    {
        if (ModelState.IsValid)
        {

            db.WishLists.Add(new WishList
            {
                UserId = ViewBag.userId,
                AdvertId = Convert.ToInt32(ViewBag.advertID),
            });
                        try {
                        db.SaveChanges();
                        }

                        catch (DbEntityValidationException dbEx)
                            {
                                foreach (var validationErrors in dbEx.EntityValidationErrors)
                                {
                                    foreach (var validationError in validationErrors.ValidationErrors)
                                    {
                                        Trace.TraceInformation("Property: {0} Error: {1}", 
                                                                validationError.PropertyName, 
                                                                validationError.ErrorMessage);
                                    }
                                }
                            }


            return RedirectToAction("Index");
        }
        return View(wishList);


    }
</code></pre>

<p>Could anyone figure out what's gone wrong? From looking around, I feel like its something really simple like the first like of the View but I can't pin it down! :)</p>

<p>Error details</p>

<blockquote>
  <p>The model item passed into the dictionary is of type 'System.Collections.Generic.List1[carBayWebsite.Models.Advert]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[carBayWebsite.Models.WishList]'</p>
</blockquote>