public async Task <bool> NetworkExistsAsync(string id)
        {
            var entity = await _tableStorage.GetDataAsync(NetworkEntity.GeneratePartitionKey(),
                                                          NetworkEntity.GenerateRowKey(id));

            return(entity != null);
        }
 private async Task UpdateIp(string id, string ip)
 {
     await _tableStorage.MergeAsync(NetworkEntity.GeneratePartitionKey(), NetworkEntity.GenerateRowKey(id),
                                    entity =>
     {
         entity.Ip = ip;
         return(entity);
     });
 }
 public async Task DeleteAsync(string id)
 {
     await _tableStorage.DeleteIfExistAsync(NetworkEntity.GeneratePartitionKey(),
                                            NetworkEntity.GenerateRowKey(id));
 }