public UnitOfWork(QLNHContext context) { this.context = context; ThucDons = new ThucDonRepository(context); BanAns = new BanAnRepository(context); HoaDons = new HoaDonRepository(context); LoaiMonAns = new LoaiMonAnRepository(context); KhachHangs = new KhachHangRepository(context); PhieuDatBans = new PhieuDatBanRepository(context); NguoiDungs = new NguoiDungRepository(context); }
public HoaDonController() { hdRepo = new HoaDonRepository(); }