Example #1
0
        private void SeeAllClaims()
        {
            List <KomodoClaims> listOfClaims = _claimsRepo.SeeAllClaims();

            foreach (KomodoClaims item in listOfClaims)
            {
                Console.WriteLine($"ClaimID:{item.ClaimID}", $"Type:{item.ClaimType}", $"Description{item.Description}", $"Amount:{item.ClaimAmount}", $"IncidentDate{item.DateOfIncident}", $"Claim Date:{item.DateOfClaim}", $"IsValid{item.IsValid}");

                /** string[] claimID = { "1", "2", "3" };
                 * string[] type = { "Car", "Home", "Theft" };
                 * string[] description = { "Car accident on 465.", "House fire in kitchen.", "Stolen pancakes." };
                 * string[] amount = { "$400.00", "$4000.00", "$4.00" };
                 * string[] incidentDate = { "4/25/18", "4/11/18", "4/27/18" };
                 * string[] claimDate = { "4/27/18", "4/12/18", "6/01/18" };
                 * string[] isValid = { "true", "true", "false" };
                 *
                 * Console.WriteLine("ClaimID", "Type", "Description", "Amount", "Incident Date", "Claim Date", "IsValid");
                 *
                 * Console.WriteLine(claimID, type, description, amount, incidentDate, claimDate, isValid);
                 *
                 * DataTable dt = new DataTable();
                 *
                 * dt.Columns.Add("Claim ID");
                 * dt.Columns.Add("Type");
                 * dt.Columns.Add("Description");
                 * dt.Columns.Add("Amount");
                 * dt.Columns.Add("Incident Date");
                 * dt.Columns.Add("Claim Date");
                 * dt.Columns.Add("IsValid");
                 *
                 * dt.Rows.Add("1", "Auto", "Car accident on 465.", "$400.00", "4/25/18", "4/27/18", true);
                 * dt.Rows.Add("2", "Home", "House fire in kitchen.", "$4000.00", "4/11/18", "4/12/18", true);
                 * dt.Rows.Add("3", "Theft", "Stolen pancakes.", "$4.00", "4/27/18", "6/01/18", false);
                 *
                 * Console.WriteLine(dt);
                 **/
            }
        }