public void DeleteWorkspace(string token, int id) { if (_auth.Authenticate(token) == null) { throw new TedExeption(ExceptionCodes.Authentication); } _repo.DeleteWorkspace(id); }
public void DeleteWorkspace() { if (!_isSolutionOpened) { return; } if (string.IsNullOrEmpty(SelectedWorkspace)) { WorkspaceLogger.Log.Info("Selected workspace is empty"); return; } ClearWorkspace(); _repository.DeleteWorkspace(SelectedWorkspace); SelectedWorkspace = null; _workspaces = _repository.GetWorkspaces(); }