コード例 #1
0
        public IEnumerable <Category> GetAllCategories()
        {
            _logger.Info($"BLL.{nameof(CategoryBll)}.{nameof(GetAllCategories)}: Getting all categories");

            foreach (var item in _categoryDao.GetAllCategories())
            {
                yield return(item);
            }
        }
コード例 #2
0
 public List <Category> GetAllCategories()
 {
     return(categoryDao.GetAllCategories());
 }