سلام
من توی کد این خطا را دارم. کدهای مربوطه را هم میگذارم
تشکر
Server Error in '/' Application.
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[MyCmsMVC5.Models.PageGroup]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[MyCmsMVC5.Models.Page]'.
کنترلر:
public ActionResult ShowNewsByGroup(int id)
{
return View(db.PageGroups.Where(p => p.GroupID == id).ToList());
}
ویو:
@model IEnumerable<MyCmsMVC5.Models.Page>
@{
ViewBag.Title = "ShowNewsByGroup";
}