public List <VersionInfoSkeleton> GetVersionsByBookId(string bookId)
        {
            var versions = m_bookRepository.GetAllVersionsByBookXmlId(bookId);
            var vers     = versions.Select(x => new VersionInfoSkeleton(x.Description, x.CreateTime)).ToList();

            vers.Add(new VersionInfoSkeleton(m_message, m_createTime, m_versionIdGenerator.Generate(m_createTime)));
            return(vers);
        }
Example #2
0
        public List <VersionInfoSkeleton> GetVersionsByBookXmlId(string bookXmlId)
        {
            var importLogs = m_projectRepository.InvokeUnitOfWork(x => x.GetAllImportLogByExternalId(bookXmlId, m_projectType));
            var vers       = importLogs.Select(x => new VersionInfoSkeleton(x.AdditionalDescription, x.CreateTime)).ToList();

            vers.Add(new VersionInfoSkeleton(m_message, m_createTime, m_versionIdGenerator.Generate(m_createTime)));
            return(vers);
        }