예제 #1
0
        public PartialViewResult LisNewOther(string slug, int ctrId, string url)
        {
            var model = new ModelNewsItem {
                CtrId = ctrId, CtrUrl = url
            };

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

                model.LstCategoryItems = _menuBl.GetChildCategories((int)ModuleType.News);
                return(PartialView(model));
            }
            else
            {
                var key = _sysbl.GetKey(ctrId);
                var val = key != null?int.Parse(key.Value) : 3;

                model.NewUrl   = _bl.GetName(val);
                model.ListItem = _bl.GetListByCateId(val);
                return(PartialView(model));
            }
        }