public SponsorLogoController(IWebHostEnvironment hostingEnvironment, ISponsorLogoService logoService) { hostEnvironment = hostingEnvironment; service = logoService; string webRoot = hostEnvironment.WebRootPath; service.SetLogoDirectoryPath(webRoot); }