//add claim public bool AddClaimToQueue(ClaimContent claim) { int startingCount = _claimDirectory.Count; _claimDirectory.Add(claim); return(_claimDirectory.Count > startingCount); }
public bool UpdateExistingClaim(int originalClaimID, ClaimContent newClaim) { ClaimContent oldClaim = GetClaimByID(originalClaimID); if (oldClaim != null) { oldClaim.ClaimID = newClaim.ClaimID; oldClaim.ClaimType = oldClaim.ClaimType; oldClaim.Description = oldClaim.Description; oldClaim.ClaimAmount = oldClaim.ClaimAmount; oldClaim.DateOfIncident = oldClaim.DateOfIncident; oldClaim.DateOfClaim = oldClaim.DateOfClaim; return(true); } else { return(false); } }
//delete claim public bool RemoveClaimFromQueue(ClaimContent existingClaim) { bool deleteClaim = _claimDirectory.Remove(existingClaim); return(deleteClaim); }