コード例 #1
0
        //CRUD

        //CREATE NEW CLAIM
        public bool AddNewClaim(ClaimItems newClaim)
        {
            int startingCount = _claimDirectory.Count;

            _claimDirectory.Add(newClaim);
            bool wasAdded = (_claimDirectory.Count > startingCount) ? true : false;

            return(wasAdded);
        }
コード例 #2
0
        //DELETE CLAIM
        public bool RemoveClaim(ClaimItems claimId)
        {
            bool deleteResult = _claimDirectory.Remove(claimId);

            return(deleteResult);
        }