public void UpdateStatus(string webSiteName, SyncInstanceStatus status, Exception lastError = null)
        {
            var syncStatus = new SyncStatus
            {
                SiteName = webSiteName,
                RoleInstanceId = AzureRoleEnvironment.CurrentRoleInstanceId(),
                DeploymentId = AzureRoleEnvironment.DeploymentId(),
                Status = status,
                IsOnline = true,
                LastError = lastError
            };

            _table.AddOrUpdate(syncStatus.ToRow());
        }
 public void Update(SyncStatus syncStatus)
 {
     _table.AddOrUpdate(syncStatus.ToRow());
 }