public JsonResult Delete(long id) { _iArticleCategoryService.DeleteArticleCategory(id); return(Json(new Result { success = true })); }
public ActionResult DeleteConfirmed(int id) { if (!_permissionService.Authorize(StandardPermissionProvider.ManageCatalog)) { return(AccessDeniedView()); } var category = _categoryService.GetArticleCategoryById(id); if (category == null) { //No category found with the specified id return(RedirectToAction("Center")); } _categoryService.DeleteArticleCategory(category); NotifySuccess(_localizationService.GetResource("Admin.ContentManagement.Categorys.Deleted")); return(RedirectToAction("Center", new { channelId = category.ChannelId })); }