Пример #1
0
        public CashBank VHasNoCashMutation(CashBank cashBank, ICashMutationService _cashMutationService)
        {
            IList <CashMutation> cashMutations = _cashMutationService.GetObjectsByCashBankId(cashBank.Id);

            if (cashMutations.Any())
            {
                cashBank.Errors.Add("Generic", "Tidak boleh ada asosiasi dengan cash mutations");
            }
            return(cashBank);
        }