Ejemplo n.º 1
0
        public void DeleteWorkspace(string token, int id)
        {
            if (_auth.Authenticate(token) == null)
            {
                throw new TedExeption(ExceptionCodes.Authentication);
            }

            _repo.DeleteWorkspace(id);
        }
Ejemplo n.º 2
0
        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();
        }