/// <summary> /// Method to allow clients of SpecialServices to add a parameter without knowing the implementation of the InputParameter /// collection. /// </summary> /// <param name="p"></param> virtual public void AddParameter(IParameter p) { ModelHelper.AddToEnumerable <IParameter, Parameter>(p, () => InputParameters, (x) => InputParameters = x); }
/// <summary> /// Add a pickup count object to the PickupSummary IEnumerable /// </summary> /// <param name="p"></param> public void AddPickupCount(IPickupCount p) { ModelHelper.AddToEnumerable <IPickupCount, IPickupCount>(p, () => PickupSummary, (x) => PickupSummary = x); }