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; }
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 HomeController(IBookRespository bookRespository, ITheLoaiRepository theLoaiRepository) { this.bookRespository = bookRespository; this.theLoaiRepository = theLoaiRepository; }
private readonly ITheLoaiRepository _theLoaiRepository; //Lấy từ Domain public TheLoaiService(ITheLoaiRepository theLoaiRepository) { _theLoaiRepository = theLoaiRepository; }