public SigningEnvelope <T> DecryptSignature(string signedContent, string signatory) { var decryptedSingature = cryptoService.DecryptSignature(signedContent, signatory); var deserializedContent = JsonConvert.DeserializeObject <T>(decryptedSingature?.Body?.Content); var body = new ContentBody <T>(); if (decryptedSingature?.Body != null) { body.Content = deserializedContent; body.Version = decryptedSingature.Body.Version; body.CreateDateTime = decryptedSingature.Body.CreateDateTime; body.EmailAddress = decryptedSingature.Body.EmailAddress; body.IpAddress = decryptedSingature.Body.IpAddress; body.Signatory = decryptedSingature.Body.Signatory; } var mappedSignature = new SigningEnvelope <T> { Header = decryptedSingature?.Header, Body = body }; return(mappedSignature); }