public HomeController(ILogger <HomeController> logger, IOptions <BaseKey> key, IEtablissementService etablissementService, IHoraireService horaireService, IMapService mapService) { _logger = logger; this.etablissementService = etablissementService; this.horaireService = horaireService; this.mapService = mapService; this.Mapbox = key.Value.MapBox; }
public AdministrationEtablissementController(IEtablissementService etablissementService, IWebHostEnvironment hostingEnvironment, IPhotoService photoService, IHoraireService horaireService, IOptions <BaseParams> baseParams) { this.etablissementService = etablissementService; this.hostingEnvironment = hostingEnvironment; this.photoService = photoService; this.horaireService = horaireService; this.NOMBREMAXPHOTOS = baseParams.Value.NbMaxPhotos; this.TAILLEMAXIMAGE = baseParams.Value.TailleMaxImage; this.TAILLEMAXLOGO = baseParams.Value.TailleMaxLogo; }