Esempio n. 1
0
        public IEnumerable <ProjectVersionModel> GetProjectVersionList(int id)
        {
            IEnumerable <ProjectVersionModel> content = null;

            // Get project from DB
            IEnumerable <ProjectVersion> projectVersions = projectRepository.GetVersionList(id);

            //Mapp to UI model
            if (projectVersions != null)
            {
                content = ApplicationMapper.MapProjectVersionContent(projectVersions);
            }
            return(content);
        }