Example #1
0
 public DichVuService(IDichVuRepository dichVuRepository, IUnitOfWork unitOfWork)
 {
     _dichVuRepository = dichVuRepository;
     _unitOfWork       = unitOfWork;
 }
Example #2
0
 public DichVuController(IDichVuRepository repo, IMapper mapper)
 {
     _repo       = repo;
     _mapper     = mapper;
     _entityName = "dịch vụ";
 }
Example #3
0
 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
 }