示例#1
0
 public AdminController(IWebHostEnvironment hostEnvironment, ClientDbContext _context, IDonHangRepository repository)
 {
     webHostEnvironment = hostEnvironment;
     context            = _context;
     dataAccess         = new DataAccess();
     _repository        = repository;
 }
示例#2
0
        public GioHangController(IDonHangRepository repository, IMobileShopRepository shopRepo, ISanPhamRepository sp)

        {
            _repository        = repository;
            _shopRepo          = shopRepo;
            _sanPhamRepository = sp;
        }
示例#3
0
 public SanPhamService(ISanPhamRepository sanPhamRepository, IDonHangRepository donHangRepository, IChiTietDonHangRepository chiTietDonHangRepository, IMapper mapper)
 {
     _donHangRepository        = donHangRepository;
     _sanPhamRepository        = sanPhamRepository;
     _chiTietDonHangRepository = chiTietDonHangRepository;
     _mapper = mapper;
 }
 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 DonHangController(IDonHangRepository _DonHangServ, IImgTmpRepository _imgTmpServ)
 {
     this._DonHangServ = _DonHangServ;
     this._imgTmpServ  = _imgTmpServ;
 }
 public DonHangBusiness(IDonHangRepository isp, IKhachHangRepository isp2)
 {
     this.isp  = isp;
     this.isp2 = isp2;
 }
示例#7
0
 public GioHangController(ClientDbContext _context, IDonHangRepository repository)
 {
     context     = _context;
     dataAccess  = new DataAccess();
     _repository = repository;
 }
 public DonHangService(IDonHangRepository donHangRepository, IMapper mapper)
 {
     _donHangRepository = donHangRepository;
     _mapper            = mapper;
 }