public JsonResult DeleteCategory(int categoryID) { bool result = true; try { DictionaryRepository _repository = new DictionaryRepository(); _repository.DeleteCategory(categoryID); } catch { result = false; } return(Json(result)); }