public FileServices(IFileProvider fileProvider, ILogger <FileServices> logger, IWebHostEnvironment hostingEnvironment, IShortUrlOperation shortUrlOperation, UserManager <ApplicationUser> userStore, Url_Short.Data.ApplicationDbContext dbContext) { _fileProvider = fileProvider; _logger = logger; contentRootPath = hostingEnvironment.ContentRootPath; _shortUrlOperation = shortUrlOperation; _userStore = userStore; _dbContext = dbContext; }
public UrlController(IShortUrlOperation shortUrlOperation, ILogger <UrlController> logger, IFileOperations fileOperations) { _shortUrlOperation = shortUrlOperation; _logger = logger; _fileOperations = fileOperations; }