public ActionResult Albums(int pageIndex = 1)
 {
     ((dynamic) base.ViewBag).Title = "专辑搜索";
     string inputString = string.IsNullOrWhiteSpace(base.Request.Params["keyword"]) ? "" : base.Server.UrlDecode(base.Request.Params["keyword"]);
     string orderby = string.IsNullOrWhiteSpace(base.Request.Params["type"]) ? "hot" : base.Request.Params["type"];
     inputString = InjectionFilter.Filter(inputString);
     this.LogKeyWord(inputString);
     int pageSize = this._baseAlbumPageSize + this._waterfallAlbumSize;
     ((dynamic) base.ViewBag).BasePageSize = this._baseAlbumPageSize;
     ((dynamic) base.ViewBag).sequence = orderby;
     int startIndex = (pageIndex > 1) ? (((pageIndex - 1) * pageSize) + 1) : 0;
     int endIndex = (pageIndex > 1) ? ((startIndex + this._baseAlbumPageSize) - 1) : this._baseAlbumPageSize;
     int countByKeyWard = 0;
     Maticsoft.BLL.SNS.UserAlbums albums = new Maticsoft.BLL.SNS.UserAlbums();
     countByKeyWard = albums.GetCountByKeyWard(inputString);
     ((dynamic) base.ViewBag).CurrentPageAjaxStartIndex = endIndex;
     int num5 = pageIndex * pageSize;
     ((dynamic) base.ViewBag).CurrentPageAjaxEndIndex = (num5 > countByKeyWard) ? countByKeyWard : num5;
     if (countByKeyWard < 1)
     {
         return base.View("Album");
     }
     PagedList<AlbumIndex> model = albums.GetListByKeyWord(inputString, orderby, startIndex, endIndex, base.UserAlbumDetailType).ToPagedList<AlbumIndex>(pageIndex, pageSize, new int?(countByKeyWard));
     if (base.Request.IsAjaxRequest())
     {
         return this.PartialView("AlbumList", model);
     }
     return base.View("Album", model);
 }
 public ActionResult WaterfallAlbumListData(string keyword, string type, int startIndex)
 {
     keyword = InjectionFilter.Filter(keyword);
     ((dynamic) base.ViewBag).BasePageSize = this._baseAlbumPageSize;
     startIndex = (startIndex > 1) ? (startIndex + 1) : 0;
     int endIndex = (startIndex > 1) ? ((startIndex + this._waterfallDetailCount) - 1) : this._waterfallDetailCount;
     Maticsoft.BLL.SNS.UserAlbums albums = new Maticsoft.BLL.SNS.UserAlbums();
     if (albums.GetCountByKeyWard(keyword) < 1)
     {
         return new EmptyResult();
     }
     List<AlbumIndex> model = albums.GetListByKeyWord(keyword, type, startIndex, endIndex, base.UserAlbumDetailType);
     return base.View("AlbumListWaterfall", model);
 }