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

        public TheLoaiService(ITheLoaiRepository theLoaiRepository)
        {
            _theLoaiRepository = theLoaiRepository;
        }