Example #1
0
        public ActionResult JokeCategoryList(string pinyin, int page = 1, int pagesize = 20)
        {
            pinyin = Sanitizer.GetSafeHtmlFragment(pinyin);
            var category = jokeLogic.CategoryGet(pinyin);
            string title = string.Format("{0}笑话大全_超级冷笑话", category.Name);
            string keywords = string.Format("{0},{1}", category.Name, SiteKeyWords);
            string description = string.Format("{0}笑话,{1}", category.Name, SiteDescription);
            SetPageSeo(title, keywords, description);
            JokeSearchModel search = new JokeSearchModel();
            search.Page = page;
            search.PageSize = pagesize;
            search.CategoryPinyin = pinyin;
            search.CategoryID = category.ID;

            var pageResult = jokeLogic.JokePostInfo(search);
            pageResult.Data = pinyin;
            pageResult.Data1 = category.Name;
            return View("~/Views/Home/JokeList.cshtml", pageResult);
        }
Example #2
0
 public ActionResult LengXiaoHua(int page = 1)
 {
     SetPageSeo(string.Format("最新冷笑话_笑话大全_第{0}页", page), SiteKeyWords, SiteDescription);
     JokeSearchModel search = new JokeSearchModel();
     search.Page = page;
     search.SearchType = JokeSearchType.LengXioaHua;
     var pageResult = jokeLogic.JokePostInfo(search);
     pageResult.Data = "lengxiaohua";
     pageResult.Data1 = "冷笑话";
     return View("~/Views/Home/JokeList.cshtml", pageResult);
 }
Example #3
0
        public ActionResult Latest(int page = 1)
        {
            SetPageSeo(string.Format("{1}年最新冷笑话_最新成人笑话_超级冷笑话_第{0}页", page,DateTime.Now.Year), SiteKeyWords, SiteDescription);
            JokeSearchModel search = new JokeSearchModel();
            search.Page = page;
            search.SearchType = JokeSearchType.Latest;
            var pageResult = jokeLogic.JokePostInfo(search);
            pageResult.Data = "latest";
            pageResult.Data1 = "最新冷笑话";

            return View("~/Views/Home/JokeList.cshtml", pageResult);
        }
Example #4
0
 public ActionResult Images(int page = 1)
 {
     SetPageSeo(string.Format("搞笑图片_成人搞笑图片_超级冷笑话_第{0}页", page), SiteKeyWords, SiteDescription);
     JokeSearchModel search = new JokeSearchModel();
     search.Page = page;
     search.SearchType = JokeSearchType.ImageJokes;
     var pageResult = jokeLogic.JokePostInfo(search);
     pageResult.Data = "images";
     pageResult.Data1 = "搞笑图片";
     return View("~/Views/Home/JokeList.cshtml", pageResult);
 }
Example #5
0
 public PageSearchResult<JokePostInfo> JokePostInfo(JokeSearchModel search)
 {
     return jokeData.JokePostInfo(search);
 }
Example #6
0
 public ActionResult JokeList(string pinyin)
 {
     JokeSearchModel search = new JokeSearchModel();
     search.Page = 1;
     search.PageSize = 20;
     var pageResult = jokeBusinessLogic.JokePostInfo(search);
     return View(pageResult);
 }