public void SaveOrder(Order order, OrderLine orderLine) { Order orderToReturn = orderRepo.Insert(order); orderLine.OrderId = orderToReturn.OrderId; OrderLine line = orderLineRepo.Insert(orderLine); }