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); }
public BillObjectToEnergyLinkObject( BillObject billObject, EnergyLinkObject energyLinkObject, DateTime sDate, DateTime?eDate) { BillObject = billObject; EnergyLinkObject = energyLinkObject; SDate = sDate; EDate = eDate; }