Пример #1
0
        public async Task <IActionResult> ContentAdd(long eventId)
        {
            ContentLangVM result = new ContentLangVM();

            result.ContentId = eventId;
            return(PartialView(result));
        }
Пример #2
0
        public ActionResult ContentLang_Create(ContentLangVM model)
        {
            model.Content = HttpUtility.HtmlDecode(model.Content);

            var    value = HttpContext.Session.GetString("SessionUser");
            UserVM user  = JsonConvert.DeserializeObject <UserVM>(value);

            model.UserId = user.Id;
            _contentBusiness.CreateContentLang(model);
            return(Content(""));
        }
Пример #3
0
 public ActionResult EditingContentLang_Update(ContentLangVM model)
 {
     model.Content = HttpUtility.HtmlDecode(model.Content);
     _contentBusiness.UpdateContentLang(model);
     return(Content(""));
 }