예제 #1
0
 private void Equipment(Registration registration, int registrationId)
 {
     foreach (var equipment in registration.Equipment.Where(e => e != null))
     {
         var id = equipment.Id != 0 ? equipment.Id : _otherEquipmentId;
         _registrationService.AddEquipment(registrationId, id, equipment.Notes);
     }
 }