At the moment my website has a repository pattern with the specification pattern in it. I can get data from within my .aspx page with just a few lines of code, example:
private IRepository repository;
protected void Page_Load(object sender, EventArgs e)
{
repository = new GenericRepository();
Specification<Book> specification = new Specification<Book>(b => b.Year == 1988);
lvBooks.DataSource = repository.GetAll<Book>(specification);
lvBooks.DataBind();
}
Now my question is, do I need a business layer in my website and if your answer is yes, why? At the moment it seems, because of the specification pattern, that I have no need for a business layer who's between the page and the repository.
Thanks for your opinion.