namespace Aberwyn.Models
{
    public class BudgetModel
    {
        public List<BudgetItem> BudgetItems { get; set; } = new List<BudgetItem>(); // Initialize with an empty list
    }

    public class BudgetItem
    {
        public int ID { get; set; }

        // Option 1: Initialize with default values
        public string Name { get; set; } = string.Empty; // Initialize to an empty string
        public decimal Amount { get; set; }
        public string Category { get; set; } = string.Empty; // Initialize to an empty string
        public string SubCategory { get; set; } = string.Empty; // Initialize to an empty string
        public int Month { get; set; }
        public int Year { get; set; }
        public string Description { get; set; } = string.Empty; // Initialize to an empty string
    }

}
