Example #1
0
        public Refund SaveRefundOrderItem(OrganizationRoleUser creatorOrganizationRoleUser, string notes,
                                          decimal amount)
        {
            var refundOrderItem = new Refund
            {
                DataRecorderMetaData =
                    new DataRecorderMetaData
                {
                    DataRecorderCreator  = creatorOrganizationRoleUser,
                    DateCreated          = DateTime.Now,
                    DataRecorderModifier = creatorOrganizationRoleUser,
                    DateModified         = DateTime.Now
                },
                Notes        = notes,
                Price        = amount,
                RefundReason = RefundReason.Other
            };
            IUniqueItemRepository <Refund> refundItemRepository = new RefundRepository();

            refundOrderItem = refundItemRepository.Save(refundOrderItem);
            return(refundOrderItem);
        }