Beispiel #1
0
        public async Task <IActionResult> AddOrUpdate(ContentEntry contentEntry)
        {
            ViewData["DataType"]     = typeof(ContentEntry);
            ViewData["DataCategory"] = await contentBusiness.GetCategoryFormByP(KnowledgeBusiness.PublishKey);

            await contentBusiness.CreateContentWithTag(contentEntry, KnowledgeBusiness.PublishKey);

            return(RedirectToAction("Index"));
        }