public List <ChapterHierarchyDetailContract> GetChapterList(long projectId) { var dbResult = m_resourceRepository.InvokeUnitOfWork(x => x.GetProjectLatestChapters(projectId, true)); var result = ChaptersHelper.ChapterToHierarchyDetailContracts(dbResult, m_mapper); return(result); }
public List <ChapterHierarchyContract> GetBookChapterList(long projectId) { m_authorizationManager.AuthorizeBook(projectId, PermissionFlag.ShowPublished); var dbResult = m_bookRepository.InvokeUnitOfWork(x => x.GetChapterList(projectId)); var resultList = ChaptersHelper.ChapterToHierarchyContracts(dbResult, m_mapper); return(resultList); }
/// <summary> /// Copies to. /// </summary> /// <param name="target">The target.</param> /// <param name="progressDelegate">The progress delegate.</param> /// <remarks>Documented by Dev03, 2009-01-13</remarks> public void CopyTo(ICopy target, CopyToProgress progressDelegate) { IChapters targetChapters = target as IChapters; if (targetChapters != null) { ChaptersHelper.Copy(this, targetChapters, progressDelegate); } }