public int CreateOrder(ICustomer customer, DateTime deliveryDate) { IOrder order = new Order(customer, deliveryDate); int id = db.CreateOrder(order); order.OrderID = id; return(id); }