public static int ApplyEdit(string userId, string serializedEdits) { var cachedItem = TransactionCache.GetItem(userId); var edits = JsonSerializer <TransactionEdit[]> .Deserialize(serializedEdits); return(cachedItem.ApplyEdits(edits)); }
public static string GetSerializedJson(string userId) { var cachedItem = TransactionCache.GetItem(userId); return(cachedItem.SerializedJson); }