コード例 #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"));
        }
コード例 #2
0
 private void DeleteCommandCallback(object sender, EventArgs args)
 {
     _workspaceService?.DeleteWorkspace();
 }