Пример #1
0
 public GlobalRepository(DataContext dataContext, ICloudinaryRepository cloudinaryRepository, UserManager <User> userManager, IHttpContextAccessor httpContextAccessor, IWebHostEnvironment webHostEnvironment)
 {
     _dataContext          = dataContext;
     _userManager          = userManager;
     _env                  = webHostEnvironment;
     _httpContextAccessor  = httpContextAccessor;
     _cloudinaryRepository = cloudinaryRepository;
 }
 public ProductRepository(DataContext dataContext, IGlobalRepository globalRepository, IMapper mapper, IHttpContextAccessor httpContextAccessor, ICloudinaryRepository cloudinaryRepository)
 {
     _dataContext          = dataContext;
     _globalRepository     = globalRepository;
     _mapper               = mapper;
     _httpContextAccessor  = httpContextAccessor;
     _cloudinaryRepository = cloudinaryRepository;
 }
Пример #3
0
 public IndustrialSupervisorRepo(ApplicationDataContext dataContext, UserManager <User> userManager,
                                 IGlobalRepository globalRepository, IAuthenticationRepo authenticationRepository,
                                 IMapper mapper, ICloudinaryRepository cloudinaryRepository)
 {
     _dataContext              = dataContext;
     _userManager              = userManager;
     _globalRepository         = globalRepository;
     _mapper                   = mapper;
     _authenticationRepository = authenticationRepository;
     _cloudinaryRepository     = cloudinaryRepository;
 }
Пример #4
0
 public StudentRepository(ApplicationDataContext dataContext, UserManager <User> userManager, IHttpContextAccessor httpContextAccessor,
                          IGlobalRepository globalRepository, IAuthenticationRepo authenticationRepository,
                          IMapper mapper, ICloudinaryRepository cloudinaryRepository)
 {
     _dataContext         = dataContext;
     _userManager         = userManager;
     _httpContextAccessor = httpContextAccessor;
     _globalRepository    = globalRepository;
     _mapper = mapper;
     _authenticationRepository = authenticationRepository;
     _cloudinaryRepository     = cloudinaryRepository;
 }