Ejemplo n.º 1
0
        public RecipesController(ICookRepository repo, IMapper mapper,
                                 IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            Account cc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret

                );

            _cloudinary = new Cloudinary(cc);
        }
Ejemplo n.º 2
0
 public ReviewsController(ICookRepository repo, IAuthRepository auth, IMapper mapper)
 {
     _mapper = mapper;
     _auth   = auth;
     _repo   = repo;
 }
Ejemplo n.º 3
0
 public PasswordController(ICookRepository repo, IMapper mapper, IEmailSender emailSender)
 {
     _emailSender = emailSender;
     _repo        = repo;
     _mapper      = mapper;
 }
Ejemplo n.º 4
0
 public NotificationsController(ICookRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Ejemplo n.º 5
0
 public CookService(ICookRepository cookRepository)
 {
     _cookRepository = cookRepository;
 }
Ejemplo n.º 6
0
 public FollowUsersController(ICookRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }