//Create New Menu Items private void CreateNewClaim() { Claim newItem = new Claim(); Console.Clear(); //Claim ID Number Console.WriteLine("Enter a Claim Number"); string numberItemString = Console.ReadLine(); newItem.ClaimID = int.Parse(numberItemString); //Claim Type Console.WriteLine("Enter Claim Type:\n" + "1. Car\n" + "2. Home\n" + "3. Theft"); newItem.TypeOfClaim = (ClaimType)int.Parse(Console.ReadLine()); //Description Console.WriteLine("Enter Claim Description"); newItem.Description = Console.ReadLine(); //Claim Amount Console.WriteLine("Enter the Amount "); //string priceString = Console.ReadLine(); newItem.ClaimAmount = Double.Parse(Console.ReadLine()); //Incident Date Console.WriteLine("Enter Date of Incident Like MM/DD/YYY"); newItem.DateOfIncident = DateTime.Parse(Console.ReadLine()); //Claim Date Console.WriteLine("Enter Date of Claim Like MM/DD/YYY"); newItem.DateOfClaim = DateTime.Parse(Console.ReadLine()); //IsValid //Console.WriteLine("Enter Date of Incident "); //newItem.IsValid = newItem.IsValid; if (newItem.IsValid) { //return "Valid"; Console.WriteLine("Good News! Your Claim is Valid."); } else { //return false; Console.WriteLine("Sorry! Your Claim is being filed too late and is Invalid."); } _claimRepo.AddItem(newItem); }