public void RemoveExpense(VPExpense item) { try { context.Expense.Remove(item); } catch (Exception ex) { // TODO log this error } }
public void AddExpense(VPExpense item) { context.Expense.Add(item); context.SaveChanges(); }