private void UpdateCategories(TransactionCategory transactionCategory) { foreach (var category in transactionCategory.CategoryNames) { UpdateCategories(category.Description, transactionCategory.Id); } }
private TransactionCategory CreateTransactionCategory(SpendingReportEntities context) { var category = new TransactionCategory(); context.TransactionCategories.Add(category); return category; }