I have a controller named DaftarController that calls Index view and fill it with mode.l
DaftarController:
public ActionResult Index()
{
List<EventRecord> li = ws.GetEvents().ToList();
var ura = li;
return View(ura);
}
It shows perfectly, but I want partial view inside my Index view.
@Html.Partial("~/Views/Daftar/_Deleted.cshtml");
So I add this in my DaftarController:
public ActionResult _Deleted()
{
List<DeletedRecord> li = ws.GetDeleteds().ToList();
var ura = li;
return View(ura);
}
But it gives error. I'm still confuse how to show partial view with model in it?