public static void Create(EndingStatementBalanceEditModel model, EndingStatementBalance entity, string userId)
 {
     entity.Id                  = model.Id;
     entity.BankAccountId       = model.BankAccountId;
     entity.EndingBalanceAmount = model.EndingBalanceAmount;
     entity.EndingBalanceDate   = model.EndingBalanceDate;
 }
Exemplo n.º 2
0
        public async Task EditAsync(EndingStatementBalanceEditModel model)
        {
            EndingStatementBalance endingStatementBalance = new EndingStatementBalance();

            EndingStatementBalanceFactory.Create(model, endingStatementBalance, _userId);
            _repository.Edit(endingStatementBalance);
            await _unitOfWork.SaveChangesAsync();
        }
        public static EndingStatementBalance Create(EndingStatementBalanceAddModel model, string userId)
        {
            var endingStatementBalance = new EndingStatementBalance
            {
                BankAccountId       = model.BankAccountId,
                EndingBalanceDate   = model.EndingBalanceDate,
                EndingBalanceAmount = model.EndingBalanceAmount
            };

            return(endingStatementBalance);
        }
Exemplo n.º 4
0
 public void Edit(EndingStatementBalance entity)
 {
     _dataContext.Update(entity);
 }
Exemplo n.º 5
0
 public async Task AddAsync(EndingStatementBalance entity)
 {
     await _dataContext.AddAsync(entity);
 }