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