Exemple #1
0
        public ExternalProject GetExternalProject(long iExternalProjectId)
        {
            if (iExternalProjectId < 1)
            {
                throw new Exception("L'id est invalide");
            }

            return(DBReleaseDataService.GetExternalProject(iExternalProjectId).Convert());
        }
Exemple #2
0
        public void ProcessedExternalProject(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 entity = DBReleaseDataService.GetExternalProject(iExternalProject.ExternalProjectId);

            entity.IsProcessed = true;
            DBReleaseDataService.UpdateExternalProject(entity);
        }