public bool ClaimIsValid(Claim1 claim) //this returns a bool to tell the validity of the claim { TimeSpan dateRange = claim.DateOfClaim.Subtract(claim.DateOfIncident); if (dateRange.Days <= 30) { return(true); } return(false); }
public void AddNewClaim(Claim1 newClaim) //add new claims { _claimRepo.Enqueue(newClaim); }