public ActionResult Delete(int id) { var ws = new WorkspaceService(); if (ws.IsUserCanInteractWithWorkspace(SessionStorage.User.Id, id)) { ws.DeleteWorkspace(id); this.SetTempMessage("Workspace has been deleted.", "success"); } return(RedirectToAction("Index")); }
private void DeleteCommandCallback(object sender, EventArgs args) { _workspaceService?.DeleteWorkspace(); }