Example #1
0
 public ServiceAccessor(AnhSanPhamRepository anhSanPhamRepository, BannerKhuyenMaiRepository bannerKhuyenMaiRepository, BinhLuanRepository binhLuanRepository, ChiTietDonHangRepository chiTietDonHangRepository, CountryRepository countryRepository, DistrictRepository districtRepository, DonHangRepository donHangRepository, LoaiSpRepository loaiSpRepository, NhaCungCapRepository nhaCungCapRepository, NhaSanXuatRepository nhaSanXuatRepository, ParameterRepository parameterRepository, ProvinceRepository provinceRepository, Core.Repository.SanPhamRepository sanPhamRepository, ThongSoKiThuatRepository thongSoKiThuatRepository, ThongSoRepository thongSoRepository, TraLoiRepository traLoiRepository, TrangThaiDonHangRepository trangThaiDonHangRepository, TrangThaiSanPhamRepository trangThaiSanPhamRepository, VoucherRepository voucherRepository, VoucherTypeRepository voucherTypeRepository, WardRepository wardRepository)
 {
     this.anhSanPhamRepository       = anhSanPhamRepository;
     this.bannerKhuyenMaiRepository  = bannerKhuyenMaiRepository;
     this.binhLuanRepository         = binhLuanRepository;
     this.chiTietDonHangRepository   = chiTietDonHangRepository;
     this.countryRepository          = countryRepository;
     this.districtRepository         = districtRepository;
     this.donHangRepository          = donHangRepository;
     this.loaiSpRepository           = loaiSpRepository;
     this.nhaCungCapRepository       = nhaCungCapRepository;
     this.nhaSanXuatRepository       = nhaSanXuatRepository;
     this.parameterRepository        = parameterRepository;
     this.provinceRepository         = provinceRepository;
     this.sanPhamRepository          = sanPhamRepository;
     this.thongSoKiThuatRepository   = thongSoKiThuatRepository;
     this.thongSoRepository          = thongSoRepository;
     this.traLoiRepository           = traLoiRepository;
     this.trangThaiDonHangRepository = trangThaiDonHangRepository;
     this.trangThaiSanPhamRepository = trangThaiSanPhamRepository;
     this.voucherRepository          = voucherRepository;
     this.voucherTypeRepository      = voucherTypeRepository;
     this.wardRepository             = wardRepository;
 }
Example #2
0
 public SanPhamController()
 {
     spRepo = new SanPhamRepository();
     dmRepo = new DanhMucRepository();
 }
Example #3
0
 public HomeController()
 {
     spRepo = new SanPhamRepository();
 }