Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public void Add(AccountBook accountBook)
 {
     _accountBookRep.Create(accountBook);
 }