private SachPresenter(ISachForm _view, ISachRepository _repository, IModelStateWraper _state) { state = _state; view = _view; repository = _repository; _view.Presenter = this; }
public HomeController(ISachRepository sachRepository, ITheLoaiRepository theLoaiRepository, ITacGiaRepository tacGiaRepository, INhaXuatBanRepository nhaXuatBanRepository, IDocGiaRepository docGiaRepository) { this.sachRepository = sachRepository; this.theLoaiRepository = theLoaiRepository; this.tacGiaRepository = tacGiaRepository; this.nhaXuatBanRepository = nhaXuatBanRepository; this.docGiaRepository = docGiaRepository; }
public SachService(ISachRepository repository) { _repository = repository; }
public SachService(ISachRepository sachRepository, IUnitOfWork unitOfWork) { this.sachRepository = sachRepository; this.unitOfWork = unitOfWork; }
public SachBusiness(ISachRepository SachGroupRes) { _res = SachGroupRes; }
public SachController(ISachRepository sachRepository) { this.sachRepository = sachRepository; }
private readonly ISachRepository _sachRepository; //Lấy từ Domain public SachService(ISachRepository sachRepository) { _sachRepository = sachRepository; }
public PhieuMuonService(IPhieuMuonRepository phieuMuonRepository, IChiTietPhieuMuonRepository chiTietPhieuMuonRepository, ISachRepository sachRepository) { this.phieumuonRepository = phieuMuonRepository; this.chiTietPhieuMuonRepository = chiTietPhieuMuonRepository; this.sachRepository = sachRepository; }
public PhieuPhatService(IPhieuPhatRepository phieuPhatRepository, IChiTietPhieuPhatRepository chiTietPhieuPhatRepository, ISachRepository sachRepository) { this.phieuphatRepository = phieuPhatRepository; this.chiTietPhieuPhatRepository = chiTietPhieuPhatRepository; this.sachRepository = sachRepository; }
static SachService() { repository = new SachRepository(); }