Ejemplo n.º 1
0
        /// <summary>
        /// 解散版块
        /// </summary>
        /// <param name="sectId"></param>
        /// <returns></returns>
        public JsonResult DissolveSection(int sectId)
        {
            var result = _bbsService.DissolveSubSection(sectId, CurrentUser.UserId);

            if (result == -1)
            {
                return(Json(new { result = 0, msg = "不能解散他人创建的版块" }, JsonRequestBehavior.AllowGet));
            }
            #region 积分
            IntegrationManager.Instence.FireIntegrationEvent(IntegrationEvents.DelSection, CurrentUser.UserId,
                                                             CurrentTenant.TenantId);
            #endregion
            return(Json(new { result = 1 }, JsonRequestBehavior.AllowGet));
        }