Beispiel #1
0
 public Category GetCategory(int cateNo)
 {
     if (cateNo <= 0)
     {
         throw new ArgumentException();
     }
     return(_categoryDal.GetCategory(cateNo));
 }
Beispiel #2
0
 public CategoryDTO GetCategoryById(int catId)
 {
     try
     {
         CategoryDTO catDto = CategoryManager.GetCategory(catId);
         return(catDto);
     }
     catch (Exception)
     {
         return(null);
     }
 }