コード例 #1
0
 public ProductController(IMapper mapper, ILinhKienRepository linhKienRepository, ILoaiLinhKienRepository llkRepository, INhaCungCapRepository nccRepository, IWebHostEnvironment webHostEnvironment)
 {
     _mapper             = mapper;
     _linhKienRepository = linhKienRepository;
     _llkRepository      = llkRepository;
     _nccRepository      = nccRepository;
     _webHostEnvironment = webHostEnvironment;
 }
コード例 #2
0
 public HomeController(ILogger <HomeController> logger,
                       ILinhKienRepository linhkienRepo,
                       IHoaDonRepository hoadonRepository,
                       IGioHangRepository giohangRepo,
                       ILoaiLinhKienRepository loailinhkienRepo,
                       IMapper mapper,
                       UserManager <ApplicationUser> userManager
                       )
 {
     _logger           = logger;
     _linhkienRepo     = linhkienRepo;
     _hoadonRepository = hoadonRepository;
     _userManager      = userManager;
     _giohangRepo      = giohangRepo;
     _loailinhkienRepo = loailinhkienRepo;
     this.mapper       = mapper;
 }
コード例 #3
0
 public CategoryController(ILoaiLinhKienRepository loaiLinhKienrRepo, IMapper mapper)
 {
     _loaiLinhKienRepo = loaiLinhKienrRepo;
     _mapper           = mapper;
 }