public IEnumerable <Category> GetAllCategories() { _logger.Info($"BLL.{nameof(CategoryBll)}.{nameof(GetAllCategories)}: Getting all categories"); foreach (var item in _categoryDao.GetAllCategories()) { yield return(item); } }
public List <Category> GetAllCategories() { return(categoryDao.GetAllCategories()); }