Exemplo n.º 1
0
        public ActionResult JokeList(int page=1)
        {
            UserJokesSearchModel search = new UserJokesSearchModel();
            search.UserId = user.UserId;
            search.Page = page;

            var pageViewResult = jokeLogic.UserJokesSearch(search);
            return View(pageViewResult);
        }
Exemplo n.º 2
0
 public ActionResult Index(int page=1)
 {
     UserJokesSearchModel userSearch = new UserJokesSearchModel();
     userSearch.JokeType = 0;
     userSearch.JokeState = 1;
     userSearch.UserId = null;
     userSearch.Page = page;
     var items = jokeLogic.UserJokesSearch(userSearch);
     items.Data = "latest";
     items.Data1 = "最新";
     return View(items);
 }
Exemplo n.º 3
0
 public PageSearchResult<JokePostInfo> UserJokesSearch(UserJokesSearchModel search)
 {
     var pageViewResult = jokeData.UserJokesSearch(search);
     return pageViewResult;
 }
Exemplo n.º 4
0
 public ActionResult JokeList(int page = 1, int pagesize = 20, int state = 0)
 {
     UserJokesSearchModel userSearch = new UserJokesSearchModel();
     userSearch.JokeState = state;
     var pageViewResult = jokeLogic.UserJokesSearch(userSearch);
     return View(pageViewResult);
 }