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); }
private void UpdatexternalProject(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); DBReleaseDataService.UpdateExternalProject(newEntity); }