public async Task <IActionResult> ContentAdd(long eventId) { ContentLangVM result = new ContentLangVM(); result.ContentId = eventId; return(PartialView(result)); }
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("")); }
public ActionResult EditingContentLang_Update(ContentLangVM model) { model.Content = HttpUtility.HtmlDecode(model.Content); _contentBusiness.UpdateContentLang(model); return(Content("")); }