//CRUD (Queue) //Create public bool AddItemsToQueue(ClaimQueue claim) { var easytounderstand = claimsClass.Count; claimsClass.Enqueue(claim); bool moreThanQuestion = (claimsClass.Count > easytounderstand) ? true : false; return(moreThanQuestion); }
//Update public bool UpdateClaimByClaimID(int inputclaimid, ClaimQueue UpdateClaim) { ClaimQueue gotclaimid = ReadClaimByID(inputclaimid); if (gotclaimid != null) { gotclaimid.TypeOfClaim = UpdateClaim.TypeOfClaim; gotclaimid.ClaimDescription = UpdateClaim.ClaimDescription; gotclaimid.ClaimAmount = UpdateClaim.ClaimAmount; gotclaimid.DateOfIncident = UpdateClaim.DateOfIncident; gotclaimid.DateOfClaim = UpdateClaim.DateOfClaim; return(true); } else { return(false); } }