public ActionResult Show(int id) { var ws = new WorkspaceService(); var workspace = ws.GetWorkspace(id); if (workspace != null && ws.IsUserCanInteractWithWorkspace(SessionStorage.User.Id, id)) { return(View(workspace)); } this.SetTempMessage("You can't see this page.", "error"); return(RedirectToAction("Index")); }