private void AddNewClaim() { Console.Clear(); ClaimDetails content = new ClaimDetails(); Console.WriteLine("Add a new claim here"); Console.WriteLine("Please enter the new claim ID here:"); string inputID = Console.ReadLine(); int numberID = int.Parse(inputID); content.ClaimID = numberID; Console.WriteLine("Please select the claim type here:\n" + "1. Car\n" + "2. Home\n" + "3. Theft\n"); string typeInput = Console.ReadLine(); int typeNumber = int.Parse(typeInput); content.ClaimType = (ClaimType)typeNumber; _claimRepository.AddClaimDetails(content); Console.WriteLine("Please enter a short description of this claim:"); content.Description = Console.ReadLine(); Console.WriteLine("Please enter the claim amount here:"); string amountInput = Console.ReadLine(); double amountNumber = double.Parse(amountInput); content.Amount = amountNumber; Console.WriteLine("Please enter the date of the accident here, in MM/DD/YYYY format:"); string dateAccInput = Console.ReadLine(); DateTime dateAccNumber = DateTime.Parse(dateAccInput); content.DateOfAccident = dateAccNumber; Console.WriteLine("Please enter today's date here, in MM/DD/YYYY format:"); string dateClInput = Console.ReadLine(); DateTime dateClNumber = DateTime.Parse(dateClInput); content.DateOfClaim = dateClNumber; Console.WriteLine("Is this claim valid?\n" + "1. Yes\n" + "2. No\n"); string isValid = Console.ReadLine(); switch (isValid) { case "1": content.IsValid = IsValid.Valid; break; case "2": content.IsValid = IsValid.Invalid; break; default: Console.WriteLine("Please select one of the listed options."); Console.ReadKey(); break; } _claimRepository.AddClaimDetails(content); }