示例#1
0
        public static int ApplyEdit(string userId, string serializedEdits)
        {
            var cachedItem = TransactionCache.GetItem(userId);

            var edits = JsonSerializer <TransactionEdit[]> .Deserialize(serializedEdits);

            return(cachedItem.ApplyEdits(edits));
        }
示例#2
0
        public static string GetSerializedJson(string userId)
        {
            var cachedItem = TransactionCache.GetItem(userId);

            return(cachedItem.SerializedJson);
        }