Beispiel #1
0
 public void UpdateExpense(Expense expense)
 {
     context.Entry(expense).State = EntityState.Modified;
 }
Beispiel #2
0
 public void InsertExpense(Expense expense)
 {
     context.Expenses.Add(expense);
 }