package sec03.brd02;

import java.util.List;

public class BoardService {

	BoardDAO boardDAO;
	
	public BoardService()
	{
		boardDAO = new BoardDAO();
	}
	
	public List<ArticleVO> listArticles() {
		List<ArticleVO> articlesList = boardDAO.selectAllArticles();
		return articlesList;
		
	}

	public void addArticle(ArticleVO article) {
		boardDAO.insertNewArticle(article);
	
		
	}
}
