Example #1
0
        public void NextClaim()
        {
            Console.Clear();

            ClaimsPoco claims = _claimUIRepo.CurrentClaim();

            Console.WriteLine($"Claim ID:{claims.ClaimID}\n Description:{claims.Description}\n Claim Amount:{claims.ClaimAmount}\n Date of Incident:{claims.DateOfIncident}\n" +
                              $"Date of Claim:{claims.DateOfClaim} Is Claim Valid:{claims.IsValid} Type of Claim:{claims.TypeOfClaim}");

            Console.WriteLine("Do you want to deal with claim?(true/false)");
            bool DealWithClaim = bool.Parse(Console.ReadLine());

            bool keepRunning = true;

            while (keepRunning)
            {
                if (DealWithClaim == true)
                {
                    _claimUIRepo.RemoveClaim();
                    keepRunning = false;
                }
                else if (DealWithClaim == false)
                {
                    keepRunning = false;
                }
                else
                {
                    Console.WriteLine("Choose True or false");
                }
            }
        }