Пример #1
0
        public BillObject AddBillObject(BillObject billObject)
        {
            if (BillObjects.Any(a => a.Id == billObject.Id))
            {
                throw new ArgumentException("Cannot add duplicate appointment to schedule.", "appointment");
            }
            BillObjects.Add(billObject);

            return(billObject);
        }
Пример #2
0
 public BillObjectToEnergyLinkObject(
     BillObject billObject,
     EnergyLinkObject energyLinkObject,
     DateTime sDate,
     DateTime?eDate)
 {
     BillObject       = billObject;
     EnergyLinkObject = energyLinkObject;
     SDate            = sDate;
     EDate            = eDate;
 }