public DeletePhotosCommandHandler(IAppDbContext context , IUserAccessor userAccessor , IFileService fileService , IOptions <PhotosDirectory> photoDirectory) { _context = context; _userAccessor = userAccessor; _fileService = fileService; _photoDirectory = photoDirectory.Value; }
public LoadPhotosCommandHandler(IDateTime dateTime , IOptions <RootFileFolderDirectory> rootDirectory , IOptions <PhotosDirectory> photosDirectory , IFileService fileService , IUserAccessor userAccessor , IAppDbContext context , IMapper mapper) { _dateTime = dateTime; _fileService = fileService; _userAccessor = userAccessor; _context = context; _mapper = mapper; _rootDirectory = rootDirectory.Value; _photosDirectory = photosDirectory.Value; }
public UsersController(IFileService fileService , IOptions <PhotosDirectory> photosDirectory) { _fileService = fileService; _photosDirectory = photosDirectory.Value; }