public static string GetDocumentMetaDataSed(string sessionId, string methodName, DocumentMetadataSed document) { string result = String.Empty; result += "{"; result += String.Format("\"sessionid\":\"{0}\",\"method\":\"{1}\",\"params\":[{{\"RNK\":\"{2}\",\"IDs_Version\":\"{3}\",\"status_code\":\"{4}\"}}]," + "\"message_id\":\"BARS-MESS-15003\"", sessionId, methodName, document.Rnk, document.IDs_Version, document.StatusCode); result += "}"; return result; }
private DocumentMetadataSed GetDocumentMetaDataSedItem() { var documentMetadata = new DocumentMetadataSed { Rnk = paramsGridView.Rows[0].Cells[1].Value.ToString(), IDs_Version = paramsGridView.Rows[1].Cells[1].Value.ToString(), StatusCode = paramsGridView.Rows[2].Cells[1].Value.ToString() }; return documentMetadata; }