/// <summary> /// 保存帖子 /// </summary> /// <param name="title"></param> /// <param name="content"></param> /// <param name="tags"></param> /// <param name="sectionId"></param> /// <param name="subsectionId"></param> /// <returns></returns> public ActionResult SaveTopic(string title, string content, string tags, int sectionId, int subsectionId) { var model = new Topic(); model.CreateTime = DateTime.Now; model.Creater = CurrentUser.UserId; model.SectionId = sectionId; model.SubSectionId = subsectionId; model.Tags = tags; model.Title = title; model.TopicContent = content; model.LastReplyTime = DateTime.Now; model.LastUpdateTime = DateTime.Now; _bbsService.AddTopic(model); #region 积分 BusinessCommon.Integration.IntegrationManager.Instence.FireIntegrationEvent(IntegrationEvents.BBSTopic, CurrentUser.UserId, CurrentTenant.TenantId); #endregion return(Json(new { result = 1, msg = RetechWing.LanguageResources.Common.SaveSuccess, id = model.TopicId }, JsonRequestBehavior.DenyGet)); }