private TacGiaPresenter(ITacGiaForm _view, ITacGiaRepository _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 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; }
private readonly ITacGiaRepository _tacGiaRepository; //Lấy từ Domain public TacGiaService(ITacGiaRepository tacGiaRepository) { _tacGiaRepository = tacGiaRepository; }
public TacGiaService(ITacGiaRepository repository) { _repository = repository; }