private void CreateNewOrdersFromSeeds() { try { foreach (var seed in _seeds) { try { int orderItemNodeId = _orderItemManager.CreateOrderItemInDbFromOrderItemSeedModel(seed, false, false); var eventId = _orderItemManager.GenerateEventId(CREATE_ORDER_FROM_LIBRIS_DATA_EVENT_TYPE); _orderItemManager.AddSierraDataToLog(orderItemNodeId, seed.SierraPatronInfo, eventId); _result.NewOrders++; } catch (Exception e) { var msg = "Error creating new OrderItem node. "; _umbraco.LogError <LibrisOrderItemsSource>(msg, e); _result.Errors++; _result.Messages.Add(msg + e.Message); } } } catch (Exception e) { throw new SourcePollingException("Error when creating new orders from seeds.", e); } }