public async Task <TEntity> GetObjectSecureAsync <TEntity>(LocalStorageKeys key)
        {
            try
            {
                //await BlobCache.Secure.InvalidateAll();
                //var a = await BlobCache.Secure.GetAllKeys();
                //var l = a.ToList();
                var returnData = await BlobCache.Secure.GetObject <TEntity>(key.ToString());

                //if (!string.IsNullOrWhiteSpace(returnJson))
                //{
                //    var output = JsonConvert.DeserializeObject<TEntity>(returnJson);
                //    return output;
                //}
                //await BlobCache.Secure.InvalidateAll();

                return(returnData);
                //return default(TEntity);
            }
            catch (KeyNotFoundException e)
            {
                return(default(TEntity));
            }
            catch (Exception e)
            {
                throw;
            }
        }
        public async Task <TEntity> GetObjectSettingsAsync <TEntity>(LocalStorageKeys key)
        {
            try
            {
                var returnData = await BlobCache.UserAccount.GetObject <TEntity>(key.ToString());

                return(returnData);
            }
            catch (Exception e)
            {
                throw;
            }
        }
        public async Task <bool> InsertObjectSettingsAsync <TEntity>(LocalStorageKeys key, TEntity entity)
        {
            try
            {
                await BlobCache.UserAccount.InsertObject(key.ToString(), entity);

                return(false);
            }
            catch (Exception e)
            {
                throw;
            }
        }
        public async Task <bool> InsertObjectSecureAsync <TEntity>(LocalStorageKeys key, TEntity entity)
        {
            try
            {
                //var json = JsonConvert.SerializeObject(entity);
                //await BlobCache.Secure.InsertObject(key.ToString(), json);
                await BlobCache.Secure.InsertObject(key.ToString(), entity);

                return(false);
            }
            catch (Exception e)
            {
                throw;
            }
        }