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

        {
            _repository        = repository;
            _shopRepo          = shopRepo;
            _sanPhamRepository = sp;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 public DonHangController(IDonHangRepository _DonHangServ, IImgTmpRepository _imgTmpServ)
 {
     this._DonHangServ = _DonHangServ;
     this._imgTmpServ  = _imgTmpServ;
 }
 public DonHangBusiness(IDonHangRepository isp, IKhachHangRepository isp2)
 {
     this.isp  = isp;
     this.isp2 = isp2;
 }
Ejemplo n.º 7
0
 public GioHangController(ClientDbContext _context, IDonHangRepository repository)
 {
     context     = _context;
     dataAccess  = new DataAccess();
     _repository = repository;
 }
Ejemplo n.º 8
0
 public DonHangService(IDonHangRepository donHangRepository, IMapper mapper)
 {
     _donHangRepository = donHangRepository;
     _mapper            = mapper;
 }