예제 #1
0
        public PagedResult <Photo> GetPagedPhotos(int pageIndex, int pageSize, string albumId)
        {
            PagedResult <Photo> result = new PagedResult <Photo>();

            result.Entities       = PhotoRepository.GetPagedPhotos(pageIndex, pageSize, albumId).ToList();
            result.TotalItemCount = PhotoRepository.GetTotalPhotoCount(albumId);
            return(result);
        }