public List<CategoryVO> FindAll() { List<CategoryVO> catList; using (var categoryAccessor = new CategoryAccessor()) { catList = _categoryAccessor.Repo.All.ToList(); } return catList; }
public IQueryable<CategoryVO> GetAll() { IQueryable<CategoryVO> qCateogry; using (var categoryAccessor = new CategoryAccessor()) { qCateogry = categoryAccessor.Repo.All; } return qCateogry; }
public CategoryBL() { _categoryAccessor = new CategoryAccessor(); }