public async Task <IActionResult> AddOrUpdate(Categories categories) { ViewData["DataType"] = typeof(FileEntry); var pcat = await contentBusiness.GetCategoryByName("漫画"); categories.ParentCategory = pcat; var _fileEntry = await contentBusiness.CreateCategory(categories); ViewData["DataModel"] = _fileEntry; return(RedirectToAction("Index")); }