public DriversController(
     IDriversService driversService,
     IDriversRatingsService driversRatingsService,
     ICloudinaryService cloudinaryService)
 {
     this.driversService        = driversService;
     this.driversRatingsService = driversRatingsService;
     this.cloudinaryService     = cloudinaryService;
 }
Пример #2
0
        public DriversViewModel()
        {
            driversService = NinjectConfig.Kernel.Get <IDriversService>();
            Drivers        = new ObservableCollection <Driver>(driversService.GetDrivers());

            SearchDriverCommand = new RelayCommand(SearchDrivers);
            InsertDriverCommand = new RelayCommand(InsertDriver);
            UpdateDriverCommand = new RelayCommand(UpdateDriver);
            DeleteDriverCommand = new RelayCommand(DeleteDriver);
            OpenEditorCommand   = new RelayCommand(OpenEditor);

            SearchEgn = SearchFullName = string.Empty;
        }
 public TransfersController(
     ITransfersService transfersService,
     IDriversService driversService,
     ITransfersTypesService transfersTypesService,
     UserManager <ApplicationUser> userManager,
     IUsersService usersService)
 {
     this.transfersService      = transfersService;
     this.driversService        = driversService;
     this.transfersTypesService = transfersTypesService;
     this.userManager           = userManager;
     this.usersService          = usersService;
 }
 public DashboardController(
     IParkingsService parkingsService,
     ICountriesService countriesService,
     ITownsService townsService,
     IDriversService driversService,
     ICarsService carsService,
     IUsersService usersService)
 {
     this.parkingsService  = parkingsService;
     this.countriesService = countriesService;
     this.townsService     = townsService;
     this.driversService   = driversService;
     this.carsService      = carsService;
     this.usersService     = usersService;
 }
Пример #5
0
        public DocumentsViewModel()
        {
            documentsService    = NinjectConfig.Kernel.Get <IDocumentsService>();
            driversService      = NinjectConfig.Kernel.Get <IDriversService>();
            nomenclatureService = NinjectConfig.Kernel.Get <INomenclatureService>();

            InsertDocumentCommand              = new RelayCommand(InsertDocument);
            GetDocumentsCommand                = new RelayCommand(GetDocuments);
            UpdateDocumentCommand              = new RelayCommand(UpdateDocument);
            DeleteDocumentCommand              = new RelayCommand(DeleteDocument);
            OpenEditorCommand                  = new RelayCommand(OpenEditor);
            AddViolationToDocumentCommand      = new RelayCommand(AddViolationToDocument);
            RemoveViolationFromDocumentCommand = new RelayCommand(RemoveViolationFromDocument);

            Documents        = new ObservableCollection <Document>(documentsService.GetDocuments(new Document()));
            DocTypes         = nomenclatureService.GetDocTypes();
            SearchDocument   = new Document();
            UpsertedDocument = new Document();
            RegNumSearch     = FullNameSearch = string.Empty;
        }
Пример #6
0
        public DriversViewModel(IDriversService driversService)
        {
            _DriversService = driversService;

            Load();
        }
Пример #7
0
 public DriversRepository(IDriversService driversService)
 {
     _driversService = driversService;
 }
 public DriversController(IDriversService driversService, ILogger <DriversController> logger)
 {
     _driversService = driversService;
     _logger         = logger;
 }
Пример #9
0
 public DriversController(IDriversService driversService, IWebHostEnvironment webHostEnvironment, UserManager <ApplicationUser> userManager)
 {
     this.driversService     = driversService;
     this.webHostEnvironment = webHostEnvironment;
     this.userManager        = userManager;
 }
Пример #10
0
 public DriversController(IDriversService driversService)
 {
     this.driversService = driversService;
 }
Пример #11
0
 public void Init()
 {
     driversService = new MockDriversService();
 }
 public DriversController(IDriversService driversService)
 {
     _driversSerice = driversService;
 }
 public DriversRepository(IDriversService driversService)
 {
     _driversService = driversService;
 }
Пример #14
0
        public DriverViewModel(IDriversService driversService)
        {
            this._DriversService = driversService;

            Load();
        }