public async Task<ImportFinancialGuaranteeRelease> Release(DecisionData decision)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var release = guarantee.Release(decision.Date);

            releaseRepository.Add(release);

            return release;
        } 
        public async Task<ImportFinancialGuaranteeApproval> Approve(DecisionData decision, string reference)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var approval = guarantee.Approve(decision.Date, reference);

            approvalRepository.Add(approval);

            return approval;
        }
        public async Task<ImportFinancialGuaranteeRefusal> Refuse(DecisionData decision, string reason)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var refusal = guarantee.Refuse(decision.Date, reason);

            refusalRepository.Add(refusal);

            return refusal;
        }
        public async Task <ImportFinancialGuaranteeRelease> Release(DecisionData decision)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var release = guarantee.Release(decision.Date);

            releaseRepository.Add(release);

            return(release);
        }
Ejemplo n.º 5
0
        public async Task <ImportFinancialGuaranteeRefusal> Refuse(DecisionData decision, string reason)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var refusal = guarantee.Refuse(decision.Date, reason);

            refusalRepository.Add(refusal);

            return(refusal);
        }
Ejemplo n.º 6
0
        public async Task <ImportFinancialGuaranteeApproval> Approve(DecisionData decision, string reference)
        {
            var guarantee = await financialGuaranteeRepository.GetByNotificationId(decision.ImportNotificationId);

            var approval = guarantee.Approve(decision.Date, reference);

            approvalRepository.Add(approval);

            return(approval);
        }