Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
 private void DeleteCommandCallback(object sender, EventArgs args)
 {
     _workspaceService?.DeleteWorkspace();
 }