public int CreateNew(Balance balance)
        {
            BalanceDBO dbo = new BalanceDBO(balance);

            _dbContext.Add(dbo);
            _dbContext.SaveChanges();
            return(dbo.Id);
        }
Beispiel #2
0
        public int CreateNew(Payment payment)
        {
            PaymentDBO dbo = new PaymentDBO(payment);

            _dbContext.Add(dbo);
            _dbContext.SaveChanges();
            return(dbo.Id);
        }