public bool UpdateExistingContent(int OriginalNumber, ClaimContent newContent) { ClaimContent oldContent = GetContentByNumber(OriginalNumber); if (oldContent != null) { oldContent.ClaimId = newContent.ClaimId; oldContent.ClaimType = newContent.ClaimType; oldContent.Description = newContent.Description; oldContent.DateOfIncident = newContent.DateOfIncident; oldContent.DateOfClaim = newContent.DateOfClaim; oldContent.ClaimAmount = newContent.ClaimAmount; oldContent.Valid = newContent.Valid; return(true); } else { return(false); } }
public bool RemoveContentFromQueue(int ClaimId) { ClaimContent content = GetContentByNumber(ClaimId); if (content == null) { return(false); } int initialCount = _listOfContent.Count; //_listOfContent.Dequeue<ClaimContent>; if (initialCount > _listOfContent.Count) { return(true); } else { return(false); } }
public void AddContentToQueue(ClaimContent content) { _listOfContent.Enqueue(content); }