public virtual void AddBookingItem(Service service, long price)
 {
     _serviceBookingItems.Add(new ServiceBookingItem(this, service, price));
 }
示例#2
0
        public void AddServiceOrderItem(Service service, long price)
        {
            if(IsFinished) throw new ApplicationException(@"Service order is finished and non-editable");

            _serviceOrderItems.Add(new ServiceOrderItem(this, service, price));
        }