Exemple #1
0
        public IActionResult Gallery()
        {
            var factory = new DouBan();

            //var factory=new Mm131();
            ViewBag.List = factory.GetListBelle();
            return(View());
        }
Exemple #2
0
        /// <summary>
        /// 画廊
        /// </summary>
        /// <returns></returns>
        public IActionResult Gallery(int cid = 4, int page = 0)
        {
            var    factory    = new DouBan();
            string requestUrl = null;

            if (page > 0)
            {
                requestUrl = $"https://www.dbmeinv.com/dbgroup/show.htm?cid={cid}&pager_offset={page}";
            }
            ViewBag.List = factory.GetListBelle(requestUrl, cid);
            return(View());
        }