//private readonly ILogger<HomeController> _logger; //ILogger<HomeController> logger, public HomeController(IConfiguration configuration) { var databaseClass = new DatabaseClass { ConnectionString = configuration.GetConnectionString("LocalDatabase"), }; _streetArtRepository = new StreetArtRepositoryClass(databaseClass); ///_logger = logger; }
public StreetArtController(IConfiguration configuration, IMapper mapper, IWebHostEnvironment env) { var databaseClass = new DatabaseClass { ConnectionString = configuration.GetConnectionString("LocalDatabase"), }; streetArtRepository = new StreetArtRepositoryClass(databaseClass); _mapper = mapper; _env = env; }
public StreetArtController(StreetArtRepository streetArtRepository, IMapper mapper, IWebHostEnvironment env) { StreetArtRepository = streetArtRepository; _mapper = mapper; _env = env; }
public StreetArtController(IMapper mapper, IWebHostEnvironment env, StreetArtRepository streetArtRepository) { this.streetArtRepository = streetArtRepository; _mapper = mapper; _env = env; }
public HomeController(StreetArtRepository streetArtRepository) { this.streetArtRepository = streetArtRepository; }