Example #1
0
 /// <summary>
 /// Banner 幻灯片
 /// </summary> 
 public ActionResult Banner(string categoryCode=null, string ownerCode=null,string width="1110" ,string height="100",string isSlide ="1")
 {
     ViewBag.width = width;
     ViewBag.height = height;
     ViewBag.IsSlide = isSlide;
     var logic = new LogicPictures();
     var resultMsg = string.Empty;
     IList<ModelPictures> list = new List<ModelPictures>();
     list = logic.QueryPicturesListByOwner(out resultMsg, categoryCode, ownerCode);
     return PartialView(list);
 }
Example #2
0
        /// <summary>
        /// 对联广告 模块
        /// </summary>
        /// <param name="categoryCode"></param>  
        public ActionResult CoupletAds(string categoryCode=null, string ownerCode=null)
        {
            var logic = new LogicPictures();
            var resultMsg = string.Empty;
            var listTemp = new List<ModelPictures>();
            IList<ModelPictures> list = new List<ModelPictures>();
            list = logic.QueryPicturesListByOwner(out resultMsg, categoryCode, ownerCode);

            if (list.Count > 0)
            {
                listTemp.Add(list.First());
                listTemp.Add(list.Last());
            }
            return PartialView(listTemp);
        }