Пример #1
0
 // ILogger<HomeController> logger,
 public HomeController(IMapper mapper, ghDbContext context, IGhibliRepository ghibliRepository)
 {
     //_logger = logger;
     _context = context;
     _ghRepo  = ghibliRepository;
     _mapper  = mapper;
 }
Пример #2
0
 public FilmController(IGhibliRepository ghibli, IMapper mapper, HttpClient client, IMemoryCache cache, GhibliDbContext _db)
 {
     _ghibli      = ghibli;
     _mapper      = mapper;
     _client      = client;
     db           = _db;
     _memoryCache = cache;
 }
 public MovieController(GhibliDbContext context, IGhibliRepository repo, IMapper mapper)
 {
     _context = context;
     _repo    = repo;
     _mapper  = mapper;
 }