public void Add(FinanceNote note) { var financeNotes = GetAll().ToList(); financeNotes.Add(note); File.WriteAllText(_connectionString, JsonSerializer.Serialize(financeNotes)); }
public void AddExpenseNote(decimal financeAmount) { var note = new FinanceNote { CreationDate = DateTime.Now, FinanceAmount = -financeAmount, }; _financeNoteRepository.Add(note); }
public void AddIncomeNote(decimal financeAmount) { financeAmount = WithdrawTaxes(financeAmount); var note = new FinanceNote { CreationDate = DateTime.Now, FinanceAmount = -financeAmount, }; _financeNoteRepository.Add(note); }
public void Add(FinanceNote note) { FinanceNotes.Add(note); }