コード例 #1
0
        //add claim
        public bool AddClaimToQueue(ClaimContent claim)
        {
            int startingCount = _claimDirectory.Count;

            _claimDirectory.Add(claim);
            return(_claimDirectory.Count > startingCount);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        //delete claim
        public bool RemoveClaimFromQueue(ClaimContent existingClaim)
        {
            bool deleteClaim = _claimDirectory.Remove(existingClaim);

            return(deleteClaim);
        }