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