public Commission FinishDraftCommission(Commission commission, ParcelLocker sourceParcelLocker)
 {
     DraftCommisions.Remove(commission);
     commission.SourceParcelLocker = sourceParcelLocker;
     Commissions.Add(commission);
     return(commission);
 }
        public Commission CreateDraftCommission(Recipient recipient, ParcelLocker targetParcelLocker, decimal price)
        {
            Commission commission = new Commission {
                Recipient = recipient, TargetParceLocker = targetParcelLocker, Price = price
            };

            DraftCommisions.Add(commission);
            return(commission);
        }
示例#3
0
 public void LeaveParcelIn(ParcelLocker parcelLocker, Parcel parcel)
 {
     AssignedParcels.Remove(parcel);
     ParcelsInPossession.Remove(parcel);
 }