public UserPhotoManager(IUserPhotoDal userPotoDal, IMapper mapper, IUploadFile upload, IUserDal userDal)
 {
     this.userDal     = userDal;
     this.upload      = upload;
     this.mapper      = mapper;
     this.userPotoDal = userPotoDal;
 }
 public PublicManager(IMapper mapper,
                      INewsDal newsDal,
                      IFoodMenuDal foodMenuDal,
                      IHomeAnnounceDal homeAnnounceDal, IUserDal userDal, IUploadFile upload, IUserPhotoDal userPhotoDal,
                      IDegreeDal degreeDal, IUserService userService,
                      ICampusDal campusDal,
                      IDepartmentDal departmentDal,
                      IVehicleAnnounceDal vehicleAnnounceDal,
                      IHttpContextAccessor httpContextAccessor,
                      IAnnounceDal announceDal)
 {
     this.vehicleAnnounceDal  = vehicleAnnounceDal;
     this.httpContextAccessor = httpContextAccessor;
     this.homeAnnounceDal     = homeAnnounceDal;
     this.userDal             = userDal;
     this.upload        = upload;
     this.userPhotoDal  = userPhotoDal;
     this.degreeDal     = degreeDal;
     this.userService   = userService;
     this.campusDal     = campusDal;
     this.departmentDal = departmentDal;
     this.announceDal   = announceDal;
     this.mapper        = mapper;
     this.newsDal       = newsDal;
     this.foodMenuDal   = foodMenuDal;
 }
 public UserController(IUserDal userDal, IMessageDal messageDal, IUserPhotoDal userPhotoDal, IMapper mapper)
 {
     _userDal      = userDal;
     _messageDal   = messageDal;
     _userPhotoDal = userPhotoDal;
     _mapper       = mapper;
 }
Exemple #4
0
        //private UsersContext _context;


        public UserPhotosController(IUserDal userDal, IUserPhotoDal userPhotoDal, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            //_context = context;
            _userPhotoDal     = userPhotoDal;
            _mapper           = mapper;
            _cloudinaryConfig = cloudinaryConfig;
            _userDal          = userDal;


            Account account = new Account(_cloudinaryConfig.Value.CloudName,
                                          _cloudinaryConfig.Value.ApiKey,
                                          _cloudinaryConfig.Value.ApiSecret
                                          );

            _cloudinary = new Cloudinary(account);
        }
 public UserPhotoManager(IUserPhotoDal userPhotoDal)
 {
     _userPhotoDal = userPhotoDal;
 }