コード例 #1
0
        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" })
        }