Ejemplo n.º 1
0
        public async Task <IActionResult> AddOrUpdate(Guid?Id)
        {
            ViewData["DataType"]     = typeof(ContentEntry);
            ViewData["DataCategory"] = await contentBusiness.GetCategoryFormByP(KnowledgeBusiness.PublishKey);

            if (Id != null)
            {
                var contentEntry = await contentBusiness.GetContentById(Id.Value);

                ViewData["DataModel"] = contentEntry;
            }

            return(View());
        }