示例#1
0
        public ActionResult NewsLang_Create(NewsLangVM news)
        {
            news.Content = HttpUtility.HtmlDecode(news.Content);
            var    value = HttpContext.Session.GetString("SessionUser");
            UserVM user  = JsonConvert.DeserializeObject <UserVM>(value);

            news.UserId = user.Id;
            _newsBusiness.CreateNewsLang(news);
            return(Content(""));
        }