public PhotosController(IFullRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repo = repo; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public FoodService(IUnitOfWork unitOfWork) { _food = unitOfWork.FoodRepository; _foodTypes = unitOfWork.FoodTypeRepository; _unitOfWork = unitOfWork; }
public PackagingManager(IFullRepository <DataAccess.Contract.Models.Cargo> cargoRepository, IPackagingConfiguration configuration) { _cargoRepository = cargoRepository; _configuration = configuration; }
public PackagingManager(IFullRepository <Cargo> cargoRepository, IPackagingConfiguration configuration) { _cargoRepository = cargoRepository; _configuration = configuration; }
public UsersController(IFullRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }