Beispiel #1
0
        public IActionResult Add(int?id)
        {
            ViewBag.BlogTypes = _sysConfig.GetConfigList(SysConfig.BlogType);
            ViewBag.CategList = _categService.GetList("");
            T_BLOG_CONTENT content = new T_BLOG_CONTENT();

            if (id != null)
            {
                content = _contentService.GetModel(" b.BlogID=" + id.Value);
            }
            return(View(content));
        }
Beispiel #2
0
        public IActionResult Detail(int id)
        {
            var model = _contentService.GetModel("b.BlogID=" + id);

            return(View(model));
        }