public async Task AddItemAsync(Item item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } _context.Items.Add(item); await _context.SaveChangesAsync(); }
public async Task AddBudgetGroupForUserAsync(BudgetGroup budgetGroup) { if (budgetGroup == null) { throw new ArgumentNullException(nameof(budgetGroup)); } _context.BudgetGroups.Add(budgetGroup); await _context.SaveChangesAsync(); }