Пример #1
0
 /// <summary>
 /// Check Document association with other entites before deletion
 /// </summary>
 private void CheckMainteneceTypeGroupAssociations(long mainteneceTypeGroupId)
 {
     // Association check b/w Maintenece Type Group and Maintenece Type
     if (maintenanceTypeRepository.IsMainteneceTypeGroupAssociatedWithMainteneceType(mainteneceTypeGroupId))
     {
         throw new CaresException(Resources.FleetPool.MaintenanceTypeGroup.MaintenanceTypeGroupIsAssociatedWithMaintenanceTypeError);
     }
 }