Beispiel #1
0
        public static void Reject(ApprovalViewModel pendingApproval)
        {
            var approval = ApprovalRepository.FindApprovalByEmail(pendingApproval.CustomerEmail);

            if (approval == null)
            {
                return;
            }

            approval.Reject();

            TransactionManager.Commit();
        }
Beispiel #2
0
        public static void Approve(ApprovalViewModel approvalViewModel)
        {
            var approval = ApprovalRepository.FindApprovalByEmail(approvalViewModel.CustomerEmail);

            if (approval == null)
            {
                return;
            }

            approval.Approve();

            TransactionManager.Commit();
        }