public PhieuChiBusiness() { dbContext = new SMSEntities(); _phieuChiRepo = new PhieuChiRepository(dbContext); _nhanVienRepo = new NhanVienRepository(dbContext); _nhanVienBus = new NhanVienBusiness(); _phieuNhapKhoRepo = new PhieuNhapKhoRepository(dbContext); }
public PhieuNhapKhoBusiness() { dbContext = new SMSEntities(); _phieuNhapKhoRepo = new PhieuNhapKhoRepository(dbContext); _nhanVienRepo = new NhanVienRepository(dbContext); _nhaCungCapRepo = new NhaCungCapRepository(dbContext); _chiTietPhieuNhapKhoRepo = new ChiTietPhieuNhapKhoRepository(dbContext); _hangHoaRepo = new HangHoaRepository(dbContext); _hangHoaBus = new HangHoaBusiness(); _nhanVienBus = new NhanVienBusiness(); }