예제 #1
0
        public CloudinaryService(IOptions <CloudinarySettings> config, NetCarsContext context)
        {
            if (config.Value.CloudName != null && config.Value.ApiKey != null && config.Value.ApiSecret != null)
            {
                var account = new Account(config.Value.CloudName, config.Value.ApiKey, config.Value.ApiSecret);
                _cloudinary = new Cloudinary(account);
            }

            _context = context;
        }
예제 #2
0
 public CarService(NetCarsContext context)
 {
     _context = context;
 }
예제 #3
0
 public HomeService(NetCarsContext context)
 {
     _context = context;
 }