public ActionResult _Banner(int Num, string BannerGroup) { var l = RP.GetBannersReprository(BannerGroup); l = l.OrderBy(r => Guid.NewGuid()).Take(Num).ToList(); return(View(l)); // @Html.Action("_Banner", "PagePart", new { Num = 10, BannerGroup = "SearchPage" }) }