public CameraSettingsController(ICamerasService camerasService, ICameraTypesService cameraTypesService, IPanelSettingsService panelSettingsService, IAccessDatasService accessDatasService, IProgInitService progInitService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService, IReaderSettingsNewService readerSettingsNewService, IDBUsersKapiService dBUsersKapiService) { user = CurrentSession.User; if (user == null) { user = new DBUsers(); } _camerasService = camerasService; _cameraTypesService = cameraTypesService; _panelSettingsService = panelSettingsService; _accessDatasService = accessDatasService; _progInitService = progInitService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _readerSettingsNewService = readerSettingsNewService; _dBUsersKapiService = dBUsersKapiService; dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = new List <int>(); dbSirketList = new List <int>(); foreach (var dbUserDepartmanNo in _dBUsersDepartmanService.GetAllDBUsersDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Departman_No)) { dbDepartmanList.Add((int)dbUserDepartmanNo); } foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No)) { dbPanelList.Add((int)dbUserPanelNo); } foreach (var dbUserDoorNo in _dBUsersKapiService.GetAllDBUsersKapi(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Kapi_Kayit_No)) { dbDoorList.Add((int)dbUserDoorNo); } foreach (var dbUserSirketNo in _dBUsersSirketService.GetAllDBUsersSirket(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Sirket_No)) { dbSirketList.Add((int)dbUserSirketNo); } }
public FaceRecognitionController(IFacesService facesService, IImagesService imagesService, ICamerasService camerasService) { this.facesService = facesService; this.imagesService = imagesService; this.camerasService = camerasService; }
public CamerasController(ICamerasService cameras, IIdentifierProvider provider) : base(provider) { this.cameras = cameras; }