Exemplo n.º 1
0
 private TacGiaPresenter(ITacGiaForm _view, ITacGiaRepository _repository, IModelStateWraper _state)
 {
     //state = _state;
     //view = _view;
     repository = _repository;
     //_view.Presenter = this;
 }
Exemplo n.º 2
0
 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 SachController(ISachService sachService, ITheLoaiRepository theLoaiRepository,
                       ITacGiaRepository tacGiaRepository, INhaXuatBanRepository nhaXuatBanRepository,
                       IWebHostEnvironment webHostEnvironment)
 {
     this.sachService          = sachService;
     this.theLoaiRepository    = theLoaiRepository;
     this.tacGiaRepository     = tacGiaRepository;
     this.nhaXuatBanRepository = nhaXuatBanRepository;
     this.webHostEnvironment   = webHostEnvironment;
 }
Exemplo n.º 4
0
        private readonly ITacGiaRepository _tacGiaRepository; //Lấy từ Domain

        public TacGiaService(ITacGiaRepository tacGiaRepository)
        {
            _tacGiaRepository = tacGiaRepository;
        }
Exemplo n.º 5
0
 public TacGiaService(ITacGiaRepository repository)
 {
     _repository = repository;
 }