public JsonResult SaveNewMessage(string title, string content, string url, string suggesSort, string photoUrl) { try { var msg = new RetechWing.Models.SysMessage { Title = title, CreateTime = DateTime.Now, MsgContent = content, MsgUrl = url, Status = 0, UserId = CurrentUser.UserId, TenantId = CurrentTenant.TenantId, PhotoUrl = photoUrl, SuggesSort = suggesSort }; _leaveMessage.AddSysMessage(msg); #region 积分 BusinessCommon.Integration.IntegrationManager.Instence.FireIntegrationEvent(IntegrationEvents.Feedback, CurrentUser.UserId, CurrentTenant.TenantId); #endregion return(Json(new { result = 1, msg = RetechWing.LanguageResources.KnowledgeLanguage.SubmitSuccess }, JsonRequestBehavior.DenyGet)); } catch { return(Json(new { result = 0, msg = RetechWing.LanguageResources.KnowledgeLanguage.SubmitFailed }, JsonRequestBehavior.DenyGet)); } }
public JsonResult SaveMessage(string title, string content, string url) { var msg = new RetechWing.Models.SysMessage { Title = title, CreateTime = DateTime.Now, MsgContent = content, MsgUrl = url, Status = 0, UserId = CurrentUser.UserId, TenantId = CurrentTenant.TenantId }; _leaveMessage.AddSysMessage(msg); return(Json(new { result = 1, msg = RetechWing.LanguageResources.KnowledgeLanguage.SubmitSuccess }, JsonRequestBehavior.DenyGet)); }