コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public void Create(PlanPosteReference planPosteReference)
 {
     _planPosteReferenceRepository.Create(planPosteReference);
 }