Пример #1
0
 public MediaController(IHostingEnvironment host, IUnitofWork unitOfWork, IIncidenceRepository incidenceRepo, IMapper mapper,
                        IMediaRepository photoRepo, IPhotoService photoService, ISettingsRepository settingsRepo, IUserRepository userRepo, IHazardRepository hazardRepo)
 {
     _host          = host;
     _unitOfWork    = unitOfWork;
     _incidenceRepo = incidenceRepo;
     _photoRepo     = photoRepo;
     _mapper        = mapper;
     _photoService  = photoService;
     _settingsRepo  = settingsRepo;
     _userRepo      = userRepo;
     _hazardRepo    = hazardRepo;
 }
Пример #2
0
 public IncidenceController(IMapper mapper, IIncidenceRepository repository, IUnitofWork unitOfWork, IUserRepository userRepo, INotificationRepository notificationRepo,
                            ISettingsRepository settingsRepo, IHostingEnvironment host, IPhotoService photoService, IIncidenceTypeDepartmentRepository incidenceTypeDeptRepo)
 {
     _host                  = host;
     this.mapper            = mapper;
     this.repository        = repository;
     this.unitOfWork        = unitOfWork;
     _userRepo              = userRepo;
     _notificationRepo      = notificationRepo;
     _settingsRepo          = settingsRepo;
     _photoService          = photoService;
     _incidenceTypeDeptRepo = incidenceTypeDeptRepo;
 }