using System.Collections.Generic;
using System.Collections;
public static void Main()
public int Id { get; set; }
public DateTime OrderDate { get; set; }
public decimal TotalAmount { get; set; }
public string CustomerName { get; set; } = string.Empty;
List<Order> orders = new List<Order>();
var random = new Random();
var orders = Enumerable.Range(1, 100).Select(i => new Order
OrderDate = DateTime.Now.AddDays(-random.Next(1, 365)),
TotalAmount = Math.Round((decimal)(random.NextDouble() * 500 + 20), 2),
CustomerName = $"Customer {i}"
public decimal TotalAmountForMonth(string yymm)
public ****changeThis*** ValidateAndParseDateTime(string input)