private void DeleteWorkout() { string connectionString = Connection; var selected = SelectedWorkout; if (selected != null) { var entity = new WorkoutEntity { PartitionKey = selected.WorkoutId, RowKey = selected.WorkoutId }; TableOperations.DeleteWorkout(connectionString, entity); RaisePropertyChanged(() => Workouts); SelectedWorkout = null; RaisePropertyChanged(() => SelectedWorkout); } }