public bool DeleteCategory(int cateNo) { if (cateNo <= 0) { throw new ArgumentException(); } return(_categoryDal.DeleteCategory(cateNo)); }
public bool DeleteCategory(int id) { try { return(CategoryManager.DeleteCategory(id)); } catch { return(false); } }