private void UpdatePlanPosteReference(int idPlanPoste, int idReferenceTable, List <SelectDto> planPosteReferences) { //sauvegarde PlanPosteReference //suppression des PlanPosteReference pour l'idPoste _planPosteReferenceService.DeleteByIdPlanPoste(idPlanPoste); foreach (var planPosteReference in planPosteReferences) { PlanPosteReference ppr = new PlanPosteReference { Id = 0, IdPlanPoste = idPlanPoste, IdReference = planPosteReference.Id, IdReferenceTable = idReferenceTable }; _planPosteReferenceService.Create(ppr); } }
public void Create(PlanPosteReference planPosteReference) { _planPosteReferenceRepository.Create(planPosteReference); }