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