public static string getClaimForProgress(int clientID, int progressID, int carrierid, int adjusterid) { string json = null; List<ClaimProgressData> claims = null; string encryptedClaimID = null; using (ClaimManager repository = new ClaimManager()) { claims = repository.GetByProgressID(clientID, progressID, carrierid, adjusterid); } // add link to claim page if (claims != null && claims.Count > 0) { foreach (ClaimProgressData claim in claims) { encryptedClaimID = Core.SecurityManager.EncryptQueryString(claim.claimID.ToString()); claim.url = string.Format("<a href=\"javascript:PopupCenter('../Protected/ClaimEdit.aspx?q={0}');\">View</a>", encryptedClaimID); } } //ComputerBeacon.Json.Serializer.Serialize(leads); json = Newtonsoft.Json.JsonConvert.SerializeObject(claims); return json; }