public ActionResult WaterfallAlbumListData(int AlbumType, int startIndex)
 {
     ((dynamic) base.ViewBag).BasePageSize = this._basePageSize;
     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.GetRecordCount(AlbumType) < 1)
     {
         return new EmptyResult();
     }
     List<AlbumIndex> model = albums.GetListForPage(AlbumType, "", startIndex, endIndex, base.UserAlbumDetailType);
     return base.View("AlbumListWaterfall", model);
 }
 public ActionResult TypeIndex(int AlbumType, int? pageIndex)
 {
     Maticsoft.Model.SNS.AlbumType model = new Maticsoft.BLL.SNS.AlbumType().GetModel(AlbumType);
     if (model == null)
     {
         return base.RedirectToAction("Index");
     }
     ((dynamic) base.ViewBag).TypeName = model.TypeName;
     int pageSize = this._basePageSize + this._waterfallSize;
     ((dynamic) base.ViewBag).BasePageSize = this._basePageSize;
     IPageSetting pageSetting = PageSetting.GetPageSetting("AblumList", ApplicationKeyType.SNS);
     pageSetting.Replace(new string[][] { new string[] { "{cname}", model.TypeName } });
     ((dynamic) base.ViewBag).Title = pageSetting.Title;
     ((dynamic) base.ViewBag).Keywords = pageSetting.Keywords;
     ((dynamic) base.ViewBag).Description = pageSetting.Description;
     pageIndex = new int?((pageIndex.HasValue && (pageIndex.Value > 1)) ? pageIndex.Value : 1);
     int startIndex = (pageIndex.Value > 1) ? (((pageIndex.Value - 1) * pageSize) + 1) : 0;
     int endIndex = (pageIndex.Value > 1) ? ((startIndex + this._basePageSize) - 1) : this._basePageSize;
     int recordCount = 0;
     Maticsoft.BLL.SNS.UserAlbums albums = new Maticsoft.BLL.SNS.UserAlbums();
     recordCount = albums.GetRecordCount(AlbumType);
     ((dynamic) base.ViewBag).CurrentPageAjaxStartIndex = endIndex;
     int num5 = pageIndex.Value * pageSize;
     ((dynamic) base.ViewBag).CurrentPageAjaxEndIndex = (num5 > recordCount) ? recordCount : num5;
     if (recordCount < 1)
     {
         return base.View();
     }
     int? nullable = pageIndex;
     PagedList<AlbumIndex> list = albums.GetListForPage(AlbumType, "", startIndex, endIndex, base.UserAlbumDetailType).ToPagedList<AlbumIndex>(nullable.HasValue ? nullable.GetValueOrDefault() : 1, pageSize, new int?(recordCount));
     if (base.Request.IsAjaxRequest())
     {
         return this.PartialView("AlbumList", list);
     }
     return base.View(list);
 }