private void RecycleRestore() { var module = new ModuleController().GetModule(ModuleId); if (ForumUser.IsAdmin || ForumUser.IsSuperUser || ModulePermissionController.HasModuleAccess(Security.SecurityAccessLevel.Edit, "EDIT", module)) { int id = -1; if (Params.ContainsKey("ReplyId")) { id = Convert.ToInt32(Params["ReplyId"]); RecycleBin.RestorePost(id); } else if (Params.ContainsKey("TopicId")) { id = Convert.ToInt32(Params["TopicId"]); RecycleBin.RestoreTopic(id); } if (id == -1) { return; } } }