public List<CategoryDto> selectAllCategory() { CategoryManager mgr = new CategoryManager(); List<Category> catList = mgr.selectAllCategory(); List<CategoryDto> dtoList = new List<CategoryDto>(); foreach (Category cat in catList) { dtoList.Add(CategoryDto.createCategoryDTO(cat)); } return dtoList; }