// GET: Article
        public ActionResult Index()
        {
            ISystemResponse error  = new SystemResponse();
            var             stores = _articleBll.GetArticles(error);

            return(View(stores));
        }
Пример #2
0
        public JsonResult ListAll()
        {
            JsonResult result    = new JsonResult();
            var        websiteId = Request["websiteId"] ?? "";

            if (string.IsNullOrEmpty(websiteId))
            {
                //获取article文章数据
                var list = bll.GetArticles(Convert.ToInt32(websiteId));
                result.Data = list;
            }
            return(result);
        }