Hello I have a project that is communicating directly with the DAL layer.
In DAL layer I'm using two patterns: Repository and Unit Of Work.
In my controller I create the instance of Unit Of Work and use as follows:
protected readonly IUnitOfWork unitOfWork;
public MyController(IUnitOfWork unitOfWork)
{
this.unitOfWork = unitOfWork;
}
Now I'm trying implement the business layer, but I'm confused on how to do.
In the business layer I will create a class of service for each repository. Each class of service must be able to communicate with one or more repositories. The UI project should communicate only with Business project, right?