示例#1
0
        public async Task AddRevenue(string accountId, Revenue revenue)
        {
            var account = await _accountRepository.GetById(accountId);

            if (account == null)
            {
                throw new NullReferenceException("Invalid Account!");
            }

            revenue.SetTarget(account);
            await _revenueRepository.Insert(revenue);
        }