public async Task <IActionResult> AddOrUpdate(Categories categories) { ViewData["DataType"] = typeof(FileEntry); var _fileEntry = await contentBusiness.CreateCategory(categories); ViewData["DataModel"] = _fileEntry; return(RedirectToAction("Index")); }
public async Task <IActionResult> AddCategory(Categories category) { var apiMsg = await contentBusiness.CreateCategory(category); return(Json(apiMsg)); }