示例#1
0
 public SanPhamService(ISanPhamRepository sanPhamRepository, IDonHangRepository donHangRepository, IChiTietDonHangRepository chiTietDonHangRepository, IMapper mapper)
 {
     _donHangRepository        = donHangRepository;
     _sanPhamRepository        = sanPhamRepository;
     _chiTietDonHangRepository = chiTietDonHangRepository;
     _mapper = mapper;
 }
示例#2
0
        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;
 }
示例#4
0
 public SanPhamService(ISanPhamRepository sanPhamRepository, IUnitOfWork unitOfWork)
 {
     _sanPhamRepository = sanPhamRepository;
     _unitOfWork        = unitOfWork;
 }
示例#5
0
 public SanPhamService(ISanPhamRepository sanPhamRepository)
 {
     _sanPhamRepository = sanPhamRepository;
 }
 public SanPhamBusiness(ISanPhamRepository ItemGroupRes)
 {
     _res = ItemGroupRes;
 }
示例#7
0
 public SanPhamBusiness(ISanPhamRepository isp, IThongKeRepository itk)
 {
     this.isp = isp;
     this.itk = itk;
 }
示例#8
0
 public SanPhamService(IValidationDictionary validationDictionary, ISanPhamRepository repository)
 {
     _validationDictionary = validationDictionary;
     _repository           = repository;
 }
示例#9
0
 public SanPhamService(ISanPhamRepository sanphamRepository, IMapper mapper)
 {
     this.sanphamRepository = sanphamRepository;
     this.iMapper           = mapper;
 }
示例#10
0
 public SanPhamNoiBatViewComponent(IMobileShopRepository context, ISanPhamRepository _sp)
 {
     _context           = context;
     _sanPhamRepository = _sp;
 }
示例#11
0
 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 đó
 }