예제 #1
0
        public List<CategoryVO> FindAll()
        {
            List<CategoryVO> catList;

            using (var categoryAccessor = new CategoryAccessor())
            {
                catList = _categoryAccessor.Repo.All.ToList();
            }
            return catList;
        }
예제 #2
0
        public IQueryable<CategoryVO> GetAll()
        {
            IQueryable<CategoryVO> qCateogry;

            using (var categoryAccessor = new CategoryAccessor())
            {
                qCateogry = categoryAccessor.Repo.All;
            }
            return qCateogry;
        }
예제 #3
0
 public CategoryBL()
 {
     _categoryAccessor = new CategoryAccessor();
 }