Exemplo n.º 1
0
        public ActionResult ListItems()
        {
            var listactiveRoleItem = _advertisingDa.GetListSimpleByRequest(Request, Utility.AgencyId);
            var model = new ModelAdvertisingItem
            {
                ListItem = listactiveRoleItem,
                PageHtml = _advertisingDa.GridHtmlPage
            };

            ViewData.Model = model;
            return(View());
        }
Exemplo n.º 2
0
        public PartialViewResult BannerDetails(int ctrId, string url, string slug, int cateId = 0)
        {
            var model = new ModelAdvertisingItem {
                CtrId = ctrId, CtrUrl = url
            };

            if (Request["doAction"] == "setting")
            {
                model.ListPositionItem = _bl.GetAdvertising();
                var key = _sysbl.GetKey(ctrId);
                model.PageId = key != null?int.Parse(key.Value) : 0;

                return(PartialView(model));
            }
            else
            {
                model.cateId = cateId;
                var key = _sysbl.GetKey(ctrId);
                var val = key != null?int.Parse(key.Value) : 15;

                model.AdvertisingItem = _bl.GetAdvertisingItem(val);
                return(PartialView(model));
            }
        }
Exemplo n.º 3
0
        public PartialViewResult Slide(int ctrId, string url)
        {
            var model = new ModelAdvertisingItem {
                CtrId = ctrId
            };

            if (Request["doAction"] == "setting")
            {
                model.ListPositionItem = _bl.GetAdvertising();
                var key = _sysbl.GetKey(ctrId);
                model.PageId = key != null?int.Parse(key.Value) : 0;

                return(PartialView(model));
            }
            else
            {
                model.CtrUrl = url;
                var key = _sysbl.GetKey(ctrId);
                var val = key != null?int.Parse(key.Value) : 14;

                model.ListItem = _bl.GetListAdvertising(val);
                return(PartialView(model));
            }
        }