public DichVuService(IDichVuRepository dichVuRepository, IUnitOfWork unitOfWork) { _dichVuRepository = dichVuRepository; _unitOfWork = unitOfWork; }
public DichVuController(IDichVuRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; _entityName = "dịch vụ"; }
private IDichVuRepository _res; //khai báo một interface dal tương ứng để dùng các hàm của dal public DichVuBusiness(IDichVuRepository ItemGroupRes) { _res = ItemGroupRes;//khởi tạo dal }