Beispiel #1
0
        public IActionResult Add(int?id)
        {
            ViewBag.calist = cadal.GetList("");
            Blog bo = new Blog();

            if (id != null)
            {
                bo = bodal.GetModel(id.Value);
            }
            return(View(bo));
        }
Beispiel #2
0
        public IActionResult Index(int id)
        {
            Blog blog = bodal.GetModel(id);

            ViewBag.bqlist = cadal.GetTopList(4, " pbh = 0 ORDER BY caname");

            ViewBag.tjlist = bodal.GetTopList(3, " sort = 0 ORDER BY visitnum DESC");

            ViewBag.zxlist = bodal.GetTopList(4, " sort = 0 ORDER BY createdate DESC");

            return(View(blog));
        }