public async Task <string> GetURLFromShortURL(string url)
        {
            var myDictionary = await StateManager.GetOrAddAsync <IReliableDictionary <int, string> >("tiny_db");

            using var tx = StateManager.CreateTransaction();
            var result = await myDictionary.TryGetValueAsync(tx, TinyURLUtils.ShortURLtoID(url));

            if (result.HasValue)
            {
                return(result.Value);
            }
            return("www.facebook.com");
        }
        public async Task <string> CreateURLForService(string url)
        {
            var myDictionary = await StateManager.GetOrAddAsync <IReliableDictionary <int, string> >("tiny_db");

            using var tx = StateManager.CreateTransaction();
            var latestId = GetLatestId();

            await myDictionary.AddOrUpdateAsync(tx, latestId.Result, url, (k, v) => v);

            await tx.CommitAsync();

            return(TinyURLUtils.IdToShortURL(latestId.Result));
        }