public ActionResult AdvertiserSelector(List <long> advertiserIds)
        {
            IEnumerable <AdvertisersModel> advertisers = AdvertisementDAO.GetAllAdvertisers();

            ViewBag.AdvertiserIds = advertiserIds;

            return(View(advertisers));
        }
Пример #2
0
        /// <summary>
        /// 新增廣告主
        /// </summary>
        /// <returns></returns>
        public ActionResult AddAdvertisers(long siteId)
        {
            IEnumerable <AdvertisersModel> advertisers = AdvertisementDAO.GetAllAdvertisers();

            ViewBag.SiteID      = siteId;
            ViewBag.Advertisers = advertisers;
            return(View());
        }