public SanPhamService(ISanPhamRepository sanPhamRepository, IDonHangRepository donHangRepository, IChiTietDonHangRepository chiTietDonHangRepository, IMapper mapper) { _donHangRepository = donHangRepository; _sanPhamRepository = sanPhamRepository; _chiTietDonHangRepository = chiTietDonHangRepository; _mapper = mapper; }
public GioHangController(IDonHangRepository repository, IMobileShopRepository shopRepo, ISanPhamRepository sp) { _repository = repository; _shopRepo = shopRepo; _sanPhamRepository = sp; }
public ThongKeBusiness(ILoaiRepository l, ISanPhamRepository sp, IThongKeRepository tk, IDonHangRepository dh, IHoaDonNhapRepository hdn, IKhachHangRepository kh) { this.l = l; this.sp = sp; this.tk = tk; this.dh = dh; this.hdn = hdn; this.kh = kh; }
public SanPhamService(ISanPhamRepository sanPhamRepository, IUnitOfWork unitOfWork) { _sanPhamRepository = sanPhamRepository; _unitOfWork = unitOfWork; }
public SanPhamService(ISanPhamRepository sanPhamRepository) { _sanPhamRepository = sanPhamRepository; }
public SanPhamBusiness(ISanPhamRepository ItemGroupRes) { _res = ItemGroupRes; }
public SanPhamBusiness(ISanPhamRepository isp, IThongKeRepository itk) { this.isp = isp; this.itk = itk; }
public SanPhamService(IValidationDictionary validationDictionary, ISanPhamRepository repository) { _validationDictionary = validationDictionary; _repository = repository; }
public SanPhamService(ISanPhamRepository sanphamRepository, IMapper mapper) { this.sanphamRepository = sanphamRepository; this.iMapper = mapper; }
public SanPhamNoiBatViewComponent(IMobileShopRepository context, ISanPhamRepository _sp) { _context = context; _sanPhamRepository = _sp; }
private ISanPhamRepository _res; //khai báo một interface dal tương ứng để dùng các hàm của dal public SanPhamBusiness(ISanPhamRepository ItemGroupRes) { _res = ItemGroupRes;//khởi tạo dal đó }