示例#1
0
 public OrderController(ITheRepository theRepository, IDSNURepository dsnuRepository, INURepository nuRepository, IHoaDonRepository hoadonRepository, ICTHDRepository cthdRepository)
 {
     this.theRepository    = theRepository;
     this.dsnuRepository   = dsnuRepository;
     this.nuRepository     = nuRepository;
     this.hoadonRepository = hoadonRepository;
     this.cthdRepository   = cthdRepository;
 }
示例#2
0
 public HoaDonController(INURepository nuRepository, IHoaDonRepository hoadonRepository, ICTHDRepository cthdRepository)
 {
     this.nuRepository     = nuRepository;
     this.hoadonRepository = hoadonRepository;
     this.cthdRepository   = cthdRepository;
 }
示例#3
0
 private readonly ICTHDRepository _cthdRepository;   //Tạo biến chứa dữ liệu
 public CTHDServices(ICTHDRepository cthdRepository) //constructor để gán dữ liệu vào biến, chi tiết xem thêm ở SanPhamServices.cs
 {
     _cthdRepository = cthdRepository;
 }