Exemple #1
0
        public void BrowseMethodTest()
        {
            int categoryId = 1;
            var category   = _repository.Browse(categoryId);

            if (category != null)
            {
                Console.WriteLine(
                    $"{category.CategoryId} - {category.CategoryName}");
            }
            else
            {
                Console.WriteLine($"{categoryId}번 카테고리가 없습니다.");
            }
        }
 public CategoryBase Browse(int id)
 {
     return(_repository.Browse(id));
 }