Exemplo n.º 1
0
        public void CreateAccountingDetail(AccountingDetailViewModel createModel)
        {
            var accountBook = new AccountBook()
            {
                Id         = Guid.NewGuid(),
                Amounttt   = (int)createModel.Price,
                Categoryyy = (int)createModel.Category,
                Dateee     = createModel.Date,
                Remarkkk   = createModel.Description,
            };

            _accountBookRepository.Create(accountBook);
        }
Exemplo n.º 2
0
        public void Add(AccountingViewModel accountingViewModel)
        {
            var result = new AccountBook()
            {
                Id         = Guid.NewGuid(),
                Categoryyy = accountingViewModel.Category.GetHashCode(),
                Dateee     = accountingViewModel.AccountingDate,
                Amounttt   = accountingViewModel.Amount,
                Remarkkk   = accountingViewModel.Remark,
            };

            Add(result);
        }
Exemplo n.º 3
0
 public void Add(AccountBook accountBook)
 {
     _accountBookRep.Create(accountBook);
 }