Exemple #1
0
        private long AddExternalProject(ExternalProject iExternalProject)
        {
            if (iExternalProject == null)
            {
                throw new Exception("Le projet externe est null");
            }
            if (iExternalProject.ExternalProjectId != -1)
            {
                throw new Exception("L'id du projet externe est invalide");
            }

            var newEntity = new T_E_ExternalProject();

            newEntity.Merge(iExternalProject);
            return(DBReleaseDataService.AddExternalProject(newEntity));
        }